mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 06:11:37 +00:00
Backed out changeset 4c963fa4683b (bug 985487)
This commit is contained in:
parent
c3601a06c2
commit
1207c28e56
@ -280,9 +280,8 @@ CompositorOGL::Initialize()
|
|||||||
LOCAL_GL_NONE
|
LOCAL_GL_NONE
|
||||||
};
|
};
|
||||||
|
|
||||||
if (!mGLContext->IsGLES2()) {
|
if (mGLContext->IsGLES2()) {
|
||||||
// No TEXTURE_RECTANGLE_ARB available on ES2
|
textureTargets[1] = LOCAL_GL_TEXTURE_RECTANGLE_ARB;
|
||||||
textureTargets[1] = LOCAL_GL_TEXTURE_RECTANGLE_ARB;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
mFBOTextureTarget = LOCAL_GL_NONE;
|
mFBOTextureTarget = LOCAL_GL_NONE;
|
||||||
@ -1192,21 +1191,13 @@ CompositorOGL::EndFrame()
|
|||||||
// Unbind all textures
|
// Unbind all textures
|
||||||
mGLContext->fActiveTexture(LOCAL_GL_TEXTURE0);
|
mGLContext->fActiveTexture(LOCAL_GL_TEXTURE0);
|
||||||
mGLContext->fBindTexture(LOCAL_GL_TEXTURE_2D, 0);
|
mGLContext->fBindTexture(LOCAL_GL_TEXTURE_2D, 0);
|
||||||
if (!mGLContext->IsGLES2()) {
|
mGLContext->fBindTexture(LOCAL_GL_TEXTURE_RECTANGLE_ARB, 0);
|
||||||
mGLContext->fBindTexture(LOCAL_GL_TEXTURE_RECTANGLE_ARB, 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
mGLContext->fActiveTexture(LOCAL_GL_TEXTURE1);
|
mGLContext->fActiveTexture(LOCAL_GL_TEXTURE1);
|
||||||
mGLContext->fBindTexture(LOCAL_GL_TEXTURE_2D, 0);
|
mGLContext->fBindTexture(LOCAL_GL_TEXTURE_2D, 0);
|
||||||
if (!mGLContext->IsGLES2()) {
|
mGLContext->fBindTexture(LOCAL_GL_TEXTURE_RECTANGLE_ARB, 0);
|
||||||
mGLContext->fBindTexture(LOCAL_GL_TEXTURE_RECTANGLE_ARB, 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
mGLContext->fActiveTexture(LOCAL_GL_TEXTURE2);
|
mGLContext->fActiveTexture(LOCAL_GL_TEXTURE2);
|
||||||
mGLContext->fBindTexture(LOCAL_GL_TEXTURE_2D, 0);
|
mGLContext->fBindTexture(LOCAL_GL_TEXTURE_2D, 0);
|
||||||
if (!mGLContext->IsGLES2()) {
|
mGLContext->fBindTexture(LOCAL_GL_TEXTURE_RECTANGLE_ARB, 0);
|
||||||
mGLContext->fBindTexture(LOCAL_GL_TEXTURE_RECTANGLE_ARB, 0);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(MOZ_WIDGET_GONK) && ANDROID_VERSION >= 17
|
#if defined(MOZ_WIDGET_GONK) && ANDROID_VERSION >= 17
|
||||||
|
Loading…
Reference in New Issue
Block a user