mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 871094 - Add a warning when calling WebGL clear(0). r=bjacob
This commit is contained in:
parent
48dd755e5f
commit
21cbc5cd18
@ -22,6 +22,10 @@ WebGLContext::Clear(WebGLbitfield mask)
|
||||
if (mask != m)
|
||||
return ErrorInvalidValue("clear: invalid mask bits");
|
||||
|
||||
if (mask == 0) {
|
||||
GenerateWarning("Calling gl.clear(0) has no effect.");
|
||||
}
|
||||
|
||||
if (mBoundFramebuffer) {
|
||||
if (!mBoundFramebuffer->CheckAndInitializeRenderbuffers())
|
||||
return ErrorInvalidFramebufferOperation("clear: incomplete framebuffer");
|
||||
|
Loading…
Reference in New Issue
Block a user