From 17f19c2bb8fb6a01a361836a113568be3b95bde9 Mon Sep 17 00:00:00 2001 From: Robert Bragg Date: Thu, 12 Mar 2009 13:32:10 +0000 Subject: [PATCH] Use Cogl enum when making modelview-matrix current in cogl_{rotate,transform,etc} My previous patch incorrectly used the GL enum with the _cogl_set_current_matrix API. --- common/cogl-current-matrix.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/common/cogl-current-matrix.c b/common/cogl-current-matrix.c index ddddd6249..7563c8cec 100644 --- a/common/cogl-current-matrix.c +++ b/common/cogl-current-matrix.c @@ -307,35 +307,35 @@ _cogl_current_matrix_state_flush (void) void cogl_push_matrix (void) { - _cogl_set_current_matrix (GL_MODELVIEW); + _cogl_set_current_matrix (COGL_MATRIX_MODELVIEW); _cogl_current_matrix_push (); } void cogl_pop_matrix (void) { - _cogl_set_current_matrix (GL_MODELVIEW); + _cogl_set_current_matrix (COGL_MATRIX_MODELVIEW); _cogl_current_matrix_pop (); } void cogl_scale (float x, float y, float z) { - _cogl_set_current_matrix (GL_MODELVIEW); + _cogl_set_current_matrix (COGL_MATRIX_MODELVIEW); _cogl_current_matrix_scale (x, y, z); } void cogl_translate (float x, float y, float z) { - _cogl_set_current_matrix (GL_MODELVIEW); + _cogl_set_current_matrix (COGL_MATRIX_MODELVIEW); _cogl_current_matrix_translate (x, y, z); } void cogl_rotate (float angle, float x, float y, float z) { - _cogl_set_current_matrix (GL_MODELVIEW); + _cogl_set_current_matrix (COGL_MATRIX_MODELVIEW); _cogl_current_matrix_rotate (angle, x, y, z); }