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
struct _ClutterShaderInt
{
- gint size;
- int value[4];
+ gint size;
+ GLint value[4];
};
struct _ClutterShaderMatrix
* Since: 0.8
*/
void
-clutter_value_set_shader_int (GValue *value,
- gint size,
- const gint *ints)
+clutter_value_set_shader_int (GValue *value,
+ gint size,
+ const gint *ints)
{
ClutterShaderInt *shader_int;
gint i;
shader_int->size = size;
for (i = 0; i < size; i++)
- shader_int->value[i] = ints[i];
+ shader_int->value[i] = (GLint) ints[i];
}
/**
*
* Since: 0.8
*/
-G_CONST_RETURN int *
+G_CONST_RETURN gint *
clutter_value_get_shader_int (const GValue *value,
gsize *length)
{