зеркало из https://github.com/mozilla/pjs.git
Bug 725105 - Fix the single-buffered (i.e., not default) case in LayerManagerOGL. r=bjacob
This commit is contained in:
Родитель
69b72bac9c
Коммит
c3ded8f1e0
|
@ -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,
|
||||
|
|
Загрузка…
Ссылка в новой задаче