Bug 649685 - Don't flip when drawing the backbuffer to the window with OpenGL. r=joe
This commit is contained in:
@@ -666,10 +666,13 @@ LayerManagerOGL::Render()
|
|||||||
right * 2.0f - 1.0f,
|
right * 2.0f - 1.0f,
|
||||||
-(bottom * 2.0f - 1.0f) };
|
-(bottom * 2.0f - 1.0f) };
|
||||||
|
|
||||||
float coords[] = { left, top,
|
// Use flipped texture coordinates since our
|
||||||
right, top,
|
// projection matrix also has a flip and we
|
||||||
left, bottom,
|
// need to cancel that out.
|
||||||
right, bottom };
|
float coords[] = { left, bottom,
|
||||||
|
right, bottom,
|
||||||
|
left, top,
|
||||||
|
right, top };
|
||||||
|
|
||||||
mGLContext->fVertexAttribPointer(vcattr,
|
mGLContext->fVertexAttribPointer(vcattr,
|
||||||
2, LOCAL_GL_FLOAT,
|
2, LOCAL_GL_FLOAT,
|
||||||
|
|||||||
Reference in New Issue
Block a user