mirror of
https://github.com/brl/mutter.git
synced 2024-12-25 20:32:16 +00:00
Bug 1044 - cogl_get_viewport error
* clutter/cogl/gles/cogl.c (cogl_get_viewport): Use glGetIntegerv instead of glGetFixedv to read the viewport because the latter converts incorrectly on some hardware.
This commit is contained in:
parent
6d07be1179
commit
3ae77fbfb7
@ -862,7 +862,13 @@ cogl_get_projection_matrix (ClutterFixed m[16])
|
|||||||
void
|
void
|
||||||
cogl_get_viewport (ClutterFixed v[4])
|
cogl_get_viewport (ClutterFixed v[4])
|
||||||
{
|
{
|
||||||
cogl_wrap_glGetFixedv(GL_VIEWPORT, &v[0]);
|
GLint viewport[4];
|
||||||
|
int i;
|
||||||
|
|
||||||
|
cogl_wrap_glGetIntegerv (GL_VIEWPORT, viewport);
|
||||||
|
|
||||||
|
for (i = 0; i < 4; i++)
|
||||||
|
v[i] = CLUTTER_INT_TO_FIXED (viewport[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
Loading…
Reference in New Issue
Block a user