mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 744543 - LayerManagerOGL doesn't build on Linux/clang. r=bjacob
This commit is contained in:
parent
640ca7ce08
commit
0b33bc95cf
@ -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++) {
|
||||
|
Loading…
Reference in New Issue
Block a user