primitives: we were memsetting the wrong wrap mode overrides pointer

In _cogl_texture_quad_multiple_primitives we weren't memsetting the
CoglMaterialWrapModeOverrides structure we were memsetting
&state.wrap_mode_overrides where state.wrap_mode_overrides is just a
pointer that might potentially later point to the
CoglMaterialWrapModeOverrides structure.
This commit is contained in:
Robert Bragg 2010-05-27 15:18:15 +01:00
parent 20910a1215
commit c9702be94e

View File

@ -256,7 +256,7 @@ _cogl_texture_quad_multiple_primitives (CoglHandle tex_handle,
}
state.wrap_mode_overrides = NULL;
memset (&state.wrap_mode_overrides, 0, sizeof (state.wrap_mode_overrides));
memset (&wrap_mode_overrides, 0, sizeof (wrap_mode_overrides));
/* We can't use hardware repeat so we need to set clamp to edge
otherwise it might pull in edge pixels from the other side. By