[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:
parent
6516dd3033
commit
f1bae778ce
@ -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)
|
||||||
{
|
{
|
||||||
|
@ -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)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user