Bug 725105 - Fix the single-buffered (i.e., not default) case in LayerManagerOGL. r=bjacob

This commit is contained in:
Joe Drew 2012-05-07 17:46:25 -04:00
Родитель 69b72bac9c
Коммит c3ded8f1e0
1 изменённых файлов: 6 добавлений и 7 удалений

Просмотреть файл

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