Bug 744543 - LayerManagerOGL doesn't build on Linux/clang. r=bjacob

This commit is contained in:
George Wright 2012-04-11 15:50:45 -04:00
parent 640ca7ce08
commit 0b33bc95cf

View File

@ -262,9 +262,13 @@ LayerManagerOGL::Initialize(nsRefPtr<GLContext> aContext, bool force)
GLenum textureTargets[] = {
LOCAL_GL_TEXTURE_2D,
mGLContext->IsGLES2() ? LOCAL_GL_TEXTURE_RECTANGLE_ARB : 0
LOCAL_GL_NONE
};
if (mGLContext->IsGLES2()) {
textureTargets[1] = LOCAL_GL_TEXTURE_RECTANGLE_ARB;
}
mFBOTextureTarget = LOCAL_GL_NONE;
for (PRUint32 i = 0; i < ArrayLength(textureTargets); i++) {