diff --git a/cogl/cogl-primitives.c b/cogl/cogl-primitives.c index 88435c61b..cae19e5e9 100644 --- a/cogl/cogl-primitives.c +++ b/cogl/cogl-primitives.c @@ -1094,7 +1094,7 @@ cogl_polygon (const CoglTextureVertex *vertices, GLfloat *v; CoglMaterialWrapModeOverrides wrap_mode_overrides; CoglMaterialWrapModeOverrides *wrap_mode_overrides_p = NULL; - CoglHandle original_source_material; + CoglHandle original_source_material = NULL; gboolean overrode_material = FALSE; _COGL_GET_CONTEXT (ctx, NO_RETVAL);