Bug 649685 - Don't flip when drawing the backbuffer to the window with OpenGL. r=joe

This commit is contained in:
Matt Woodrow
2011-05-09 11:44:03 +12:00
parent 2397cceed0
commit af73bf63d9

View File

@@ -666,10 +666,13 @@ LayerManagerOGL::Render()
right * 2.0f - 1.0f,
-(bottom * 2.0f - 1.0f) };
float coords[] = { left, top,
right, top,
left, bottom,
right, bottom };
// Use flipped texture coordinates since our
// projection matrix also has a flip and we
// need to cancel that out.
float coords[] = { left, bottom,
right, bottom,
left, top,
right, top };
mGLContext->fVertexAttribPointer(vcattr,
2, LOCAL_GL_FLOAT,