mirror of
https://github.com/brl/mutter.git
synced 2024-12-24 12:02:04 +00: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
2d6925f243
commit
634bcb34f9
@ -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