[cogl] Add an NULL terminator to the call to material_flush_gl_state

This fixes a compiler warning and a potential crash.
This commit is contained in:
Neil Roberts 2009-01-29 12:21:56 +00:00
parent 6516dd3033
commit f1bae778ce
2 changed files with 2 additions and 2 deletions

View File

@ -485,7 +485,7 @@ _cogl_add_stencil_clip (float x_offset,
{ {
_COGL_GET_CONTEXT (ctx, NO_RETVAL); _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) if (first)
{ {

View File

@ -408,7 +408,7 @@ _cogl_add_stencil_clip (float x_offset,
{ {
_COGL_GET_CONTEXT (ctx, NO_RETVAL); _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) if (first)
{ {