Convert gint to GLints in the Shader types wrapper

The GValue wrappers for ClutterShader types should always store
values using GL types (GLfloat, GLint) internally, but give and
take generic C types (float, int) to the Clutter side.

Fixes bug:

  http://bugzilla.openedhand.com/show_bug.cgi?id=1359
This commit is contained in:
Emmanuele Bassi 2009-07-27 15:01:52 +01:00
parent ad7dcc9896
commit 88e77b25df

View File

@ -88,7 +88,7 @@ struct _ClutterShaderFloat
struct _ClutterShaderInt
{
gint size;
int value[4];
GLint value[4];
};
struct _ClutterShaderMatrix
@ -434,7 +434,7 @@ clutter_value_set_shader_int (GValue *value,
shader_int->size = size;
for (i = 0; i < size; i++)
shader_int->value[i] = ints[i];
shader_int->value[i] = (GLint) ints[i];
}
/**
@ -514,7 +514,7 @@ clutter_value_get_shader_float (const GValue *value,
*
* Since: 0.8
*/
G_CONST_RETURN int *
G_CONST_RETURN gint *
clutter_value_get_shader_int (const GValue *value,
gsize *length)
{