From 924780ce3511ba9bc9e2a6b955836eaaa4d0a216 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Fri, 23 Oct 2009 16:44:28 +0100 Subject: [PATCH] cogl: Avoid C99-isms Do not declare variables after statements. --- clutter/cogl/cogl/cogl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clutter/cogl/cogl/cogl.c b/clutter/cogl/cogl/cogl.c index 5399310ad..4fb1c7e67 100644 --- a/clutter/cogl/cogl/cogl.c +++ b/clutter/cogl/cogl/cogl.c @@ -375,14 +375,14 @@ _cogl_set_clip_planes (float x_offset, CoglMatrix modelview_matrix; CoglMatrix projection_matrix; - _COGL_GET_CONTEXT (ctx, NO_RETVAL); - float vertex_tl[4] = { x_offset, y_offset, 0, 1.0 }; float vertex_tr[4] = { x_offset + width, y_offset, 0, 1.0 }; float vertex_bl[4] = { x_offset, y_offset + height, 0, 1.0 }; float vertex_br[4] = { x_offset + width, y_offset + height, 0, 1.0 }; + _COGL_GET_CONTEXT (ctx, NO_RETVAL); + _cogl_matrix_stack_get (ctx->projection_stack, &projection_matrix); _cogl_matrix_stack_get (ctx->modelview_stack, &modelview_matrix);