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:
Neil Roberts 2008-09-18 11:24:27 +00:00
parent 778ea5cf06
commit 76faa8c7a6
2 changed files with 15 additions and 1 deletions

View File

@ -1,3 +1,11 @@
2008-09-18 Neil Roberts <neil@linux.intel.com>
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.
2008-09-18 Neil Roberts <neil@linux.intel.com>
Bug 1080 - clutter_stage_read_pixels has upside-down y coordinate

View File

@ -862,7 +862,13 @@ cogl_get_projection_matrix (ClutterFixed m[16])
void
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