mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1140459 - Skip IsRenderbuffer assertions on Android emulator; r=jgilbert
This commit is contained in:
parent
5ba8dcb6d5
commit
25b483863d
@ -1876,7 +1876,8 @@ GLContext::AttachBuffersToFB(GLuint colorTex, GLuint colorRB,
|
||||
colorTex,
|
||||
0);
|
||||
} else if (colorRB) {
|
||||
MOZ_ASSERT(fIsRenderbuffer(colorRB));
|
||||
// On the Android 4.3 emulator, IsRenderbuffer may return false incorrectly.
|
||||
MOZ_ASSERT_IF(Renderer() != GLRenderer::AndroidEmulator, fIsRenderbuffer(colorRB));
|
||||
fFramebufferRenderbuffer(LOCAL_GL_FRAMEBUFFER,
|
||||
LOCAL_GL_COLOR_ATTACHMENT0,
|
||||
LOCAL_GL_RENDERBUFFER,
|
||||
@ -1884,7 +1885,7 @@ GLContext::AttachBuffersToFB(GLuint colorTex, GLuint colorRB,
|
||||
}
|
||||
|
||||
if (depthRB) {
|
||||
MOZ_ASSERT(fIsRenderbuffer(depthRB));
|
||||
MOZ_ASSERT_IF(Renderer() != GLRenderer::AndroidEmulator, fIsRenderbuffer(depthRB));
|
||||
fFramebufferRenderbuffer(LOCAL_GL_FRAMEBUFFER,
|
||||
LOCAL_GL_DEPTH_ATTACHMENT,
|
||||
LOCAL_GL_RENDERBUFFER,
|
||||
@ -1892,7 +1893,7 @@ GLContext::AttachBuffersToFB(GLuint colorTex, GLuint colorRB,
|
||||
}
|
||||
|
||||
if (stencilRB) {
|
||||
MOZ_ASSERT(fIsRenderbuffer(stencilRB));
|
||||
MOZ_ASSERT_IF(Renderer() != GLRenderer::AndroidEmulator, fIsRenderbuffer(stencilRB));
|
||||
fFramebufferRenderbuffer(LOCAL_GL_FRAMEBUFFER,
|
||||
LOCAL_GL_STENCIL_ATTACHMENT,
|
||||
LOCAL_GL_RENDERBUFFER,
|
||||
|
Loading…
Reference in New Issue
Block a user