mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1243908 - Use DrawBuffers through GLScreenBuffer when operating on fb0. - r=jrmuizel
This commit is contained in:
parent
50acbbf513
commit
95b0b423a5
@ -1304,8 +1304,7 @@ WebGLContext::ClearScreen()
|
||||
|
||||
const bool changeDrawBuffers = (mDefaultFB_DrawBuffer0 != LOCAL_GL_BACK);
|
||||
if (changeDrawBuffers) {
|
||||
const GLenum back = LOCAL_GL_BACK;
|
||||
gl->fDrawBuffers(1, &back);
|
||||
gl->Screen()->SetDrawBuffer(LOCAL_GL_BACK);
|
||||
}
|
||||
|
||||
GLbitfield bufferBits = LOCAL_GL_COLOR_BUFFER_BIT;
|
||||
@ -1317,7 +1316,7 @@ WebGLContext::ClearScreen()
|
||||
ForceClearFramebufferWithDefaultValues(bufferBits, mNeedsFakeNoAlpha);
|
||||
|
||||
if (changeDrawBuffers) {
|
||||
gl->fDrawBuffers(1, &mDefaultFB_DrawBuffer0);
|
||||
gl->Screen()->SetDrawBuffer(mDefaultFB_DrawBuffer0);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user