mirror of
https://github.com/brl/mutter.git
synced 2024-11-12 17:27:03 -05:00
texture-rectangle: Initialize is_foreign
So we don't read an initializes value later on. Caught by valgrind: Conditional jump or move depends on uninitialised value(s) _cogl_object_texture_rectangle_indirect_free (cogl-texture-rectangle.c:105) _cogl_object_context_indirect_free (cogl-context.c:453) ... main (text.c:149) Signed-off-by: Damien Lespiau <damien.lespiau@intel.com> Reviewed-by: Neil Roberts <neil@linux.intel.com> (cherry picked from commit 90415aae9495749a2a9e85fb17425a3c7f6a08c8)
This commit is contained in:
parent
f2d785e22b
commit
af8ea69b7f
@ -174,6 +174,7 @@ _cogl_texture_rectangle_create_base (CoglContext *ctx,
|
||||
_cogl_texture_init (tex, ctx, width, height, &cogl_texture_rectangle_vtable);
|
||||
|
||||
tex_rect->gl_texture = 0;
|
||||
tex_rect->is_foreign = FALSE;
|
||||
|
||||
/* We default to GL_LINEAR for both filters */
|
||||
tex_rect->gl_legacy_texobj_min_filter = GL_LINEAR;
|
||||
|
Loading…
Reference in New Issue
Block a user