From be06fe0b757a08fd4b7ac74a340ab229ca52e774 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. --- cogl/cogl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cogl/cogl.c b/cogl/cogl.c index 5399310ad..4fb1c7e67 100644 --- a/cogl/cogl.c +++ b/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);