From f1bae778cea59a652af34948ed4addba212f8e89 Mon Sep 17 00:00:00 2001 From: Neil Roberts Date: Thu, 29 Jan 2009 12:21:56 +0000 Subject: [PATCH] [cogl] Add an NULL terminator to the call to material_flush_gl_state This fixes a compiler warning and a potential crash. --- clutter/cogl/gl/cogl.c | 2 +- clutter/cogl/gles/cogl.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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) {