diff --git a/clutter/cogl/gl/cogl.c b/clutter/cogl/gl/cogl.c index f38f3b966..1f16a449f 100644 --- a/clutter/cogl/gl/cogl.c +++ b/clutter/cogl/gl/cogl.c @@ -485,7 +485,7 @@ _cogl_add_stencil_clip (float x_offset, { _COGL_GET_CONTEXT (ctx, NO_RETVAL); - cogl_material_flush_gl_state (ctx->stencil_material); + cogl_material_flush_gl_state (ctx->stencil_material, NULL); if (first) { diff --git a/clutter/cogl/gles/cogl.c b/clutter/cogl/gles/cogl.c index a5b797a78..cb2d5ee02 100644 --- a/clutter/cogl/gles/cogl.c +++ b/clutter/cogl/gles/cogl.c @@ -408,7 +408,7 @@ _cogl_add_stencil_clip (float x_offset, { _COGL_GET_CONTEXT (ctx, NO_RETVAL); - cogl_material_flush_gl_state (ctx->stencil_material); + cogl_material_flush_gl_state (ctx->stencil_material, NULL); if (first) {