From da9f956fd103e3df9e0cfa6bc400c84abf331f53 Mon Sep 17 00:00:00 2001
From: Neil Roberts <neil@linux.intel.com>
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.
---
 gl/cogl.c   | 2 +-
 gles/cogl.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/gl/cogl.c b/gl/cogl.c
index f38f3b966..1f16a449f 100644
--- a/gl/cogl.c
+++ b/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/gles/cogl.c b/gles/cogl.c
index a5b797a78..cb2d5ee02 100644
--- a/gles/cogl.c
+++ b/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)
     {