mirror of
https://github.com/brl/mutter.git
synced 2025-02-18 14:14:10 +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
778ea5cf06
commit
76faa8c7a6
@ -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>
|
2008-09-18 Neil Roberts <neil@linux.intel.com>
|
||||||
|
|
||||||
Bug 1080 - clutter_stage_read_pixels has upside-down y coordinate
|
Bug 1080 - clutter_stage_read_pixels has upside-down y coordinate
|
||||||
|
@ -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…
x
Reference in New Issue
Block a user