mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1017571 - Use TRIANGLES instead of TRIANGLE_STRIP to fix rendering glitchs on MacOSX with uniform array access (r=Bas)
This commit is contained in:
parent
4f4c6575e4
commit
ea138f8c8e
@ -308,18 +308,29 @@ CompositorOGL::Initialize()
|
||||
0.0f, 0.0f, 0.0f, 0.0f,
|
||||
1.0f, 0.0f, 0.0f, 0.0f,
|
||||
0.0f, 1.0f, 0.0f, 0.0f,
|
||||
1.0f, 0.0f, 0.0f, 0.0f,
|
||||
0.0f, 1.0f, 0.0f, 0.0f,
|
||||
1.0f, 1.0f, 0.0f, 0.0f,
|
||||
|
||||
0.0f, 0.0f, 0.0f, 1.0f,
|
||||
1.0f, 0.0f, 0.0f, 1.0f,
|
||||
0.0f, 1.0f, 0.0f, 1.0f,
|
||||
1.0f, 0.0f, 0.0f, 1.0f,
|
||||
0.0f, 1.0f, 0.0f, 1.0f,
|
||||
1.0f, 1.0f, 0.0f, 1.0f,
|
||||
|
||||
0.0f, 0.0f, 0.0f, 2.0f,
|
||||
1.0f, 0.0f, 0.0f, 2.0f,
|
||||
0.0f, 1.0f, 0.0f, 2.0f,
|
||||
1.0f, 0.0f, 0.0f, 2.0f,
|
||||
0.0f, 1.0f, 0.0f, 2.0f,
|
||||
1.0f, 1.0f, 0.0f, 2.0f,
|
||||
|
||||
0.0f, 0.0f, 0.0f, 3.0f,
|
||||
1.0f, 0.0f, 0.0f, 3.0f,
|
||||
0.0f, 1.0f, 0.0f, 3.0f,
|
||||
1.0f, 0.0f, 0.0f, 3.0f,
|
||||
0.0f, 1.0f, 0.0f, 3.0f,
|
||||
1.0f, 1.0f, 0.0f, 3.0f,
|
||||
};
|
||||
HeapCopyOfStackArray<GLfloat> verticesOnHeap(vertices);
|
||||
@ -1519,7 +1530,9 @@ CompositorOGL::BindAndDrawQuads(ShaderProgramOGL *aProg,
|
||||
aProg->SetTextureRects(aTextureRects);
|
||||
}
|
||||
|
||||
mGLContext->fDrawArrays(LOCAL_GL_TRIANGLE_STRIP, 0, 4 * aQuads);
|
||||
// We are using GL_TRIANGLES here because the Mac Intel drivers fail to properly
|
||||
// process uniform arrays with GL_TRIANGLE_STRIP. Go figure.
|
||||
mGLContext->fDrawArrays(LOCAL_GL_TRIANGLES, 0, 6 * aQuads);
|
||||
}
|
||||
|
||||
GLuint
|
||||
|
Loading…
Reference in New Issue
Block a user