mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 985487 - Don't try to use GL_TEXTURE_RECTANGLE_ARB on ES2 r=mwoodrow
This commit is contained in:
parent
146bae5aff
commit
0afeb7e71a
@ -280,8 +280,9 @@ CompositorOGL::Initialize()
|
||||
LOCAL_GL_NONE
|
||||
};
|
||||
|
||||
if (mGLContext->IsGLES2()) {
|
||||
textureTargets[1] = LOCAL_GL_TEXTURE_RECTANGLE_ARB;
|
||||
if (!mGLContext->IsGLES2()) {
|
||||
// No TEXTURE_RECTANGLE_ARB available on ES2
|
||||
textureTargets[1] = LOCAL_GL_TEXTURE_RECTANGLE_ARB;
|
||||
}
|
||||
|
||||
mFBOTextureTarget = LOCAL_GL_NONE;
|
||||
@ -1191,13 +1192,21 @@ CompositorOGL::EndFrame()
|
||||
// Unbind all textures
|
||||
mGLContext->fActiveTexture(LOCAL_GL_TEXTURE0);
|
||||
mGLContext->fBindTexture(LOCAL_GL_TEXTURE_2D, 0);
|
||||
mGLContext->fBindTexture(LOCAL_GL_TEXTURE_RECTANGLE_ARB, 0);
|
||||
if (!mGLContext->IsGLES2()) {
|
||||
mGLContext->fBindTexture(LOCAL_GL_TEXTURE_RECTANGLE_ARB, 0);
|
||||
}
|
||||
|
||||
mGLContext->fActiveTexture(LOCAL_GL_TEXTURE1);
|
||||
mGLContext->fBindTexture(LOCAL_GL_TEXTURE_2D, 0);
|
||||
mGLContext->fBindTexture(LOCAL_GL_TEXTURE_RECTANGLE_ARB, 0);
|
||||
if (!mGLContext->IsGLES2()) {
|
||||
mGLContext->fBindTexture(LOCAL_GL_TEXTURE_RECTANGLE_ARB, 0);
|
||||
}
|
||||
|
||||
mGLContext->fActiveTexture(LOCAL_GL_TEXTURE2);
|
||||
mGLContext->fBindTexture(LOCAL_GL_TEXTURE_2D, 0);
|
||||
mGLContext->fBindTexture(LOCAL_GL_TEXTURE_RECTANGLE_ARB, 0);
|
||||
if (!mGLContext->IsGLES2()) {
|
||||
mGLContext->fBindTexture(LOCAL_GL_TEXTURE_RECTANGLE_ARB, 0);
|
||||
}
|
||||
}
|
||||
|
||||
#if defined(MOZ_WIDGET_GONK) && ANDROID_VERSION >= 17
|
||||
|
Loading…
Reference in New Issue
Block a user