Commits

Marc Lepage committed 7b496e3 Draft

Fix issue with glMatrixMode.

  • Participants
  • Parent commits fa0eb39
  • Branches gles

Comments (0)

Files changed (2)

src/modules/graphics/opengl/GLES.cpp

 
 void glMatrixMode(int mode)
 {
-	::mode = mode;
+	::mode = mode - GL_MODELVIEW;
 }
 
 void glLoadIdentity(void)

src/modules/graphics/opengl/GLES.h

 {
 
 // Matrix modes
-#define GL_MODELVIEW 0
-#define GL_PROJECTION 1
+#define GL_MODELVIEW 5888
+#define GL_PROJECTION 5889
 
 // Attribute bits
 #define GL_VIEWPORT_BIT 0