primitives: we were memsetting the wrong wrap mode overrides pointer
authorRobert Bragg <robert@linux.intel.com>
Thu, 27 May 2010 14:18:15 +0000 (15:18 +0100)
committerRobert Bragg <robert@linux.intel.com>
Tue, 15 Jun 2010 14:26:28 +0000 (15:26 +0100)
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.

clutter/cogl/cogl/cogl-primitives.c

index 0f26f36..88435c6 100644 (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