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, 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,