mirror of
https://github.com/brl/mutter.git
synced 2024-11-22 08:00:42 -05:00
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:
parent
20910a1215
commit
c9702be94e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user