switched to the flag used in other places
authorMarek Moeckel <wansti@gmx.de>
Wed, 17 Sep 2008 16:41:46 +0000 (16:41 +0000)
committerMarek Moeckel <wansti@gmx.de>
Wed, 17 Sep 2008 16:41:46 +0000 (16:41 +0000)
SVN-Revision: 5772

src/video/glutil.hpp
src/video/texture_manager.cpp

index 3a5845a..c1b45be 100644 (file)
@@ -30,7 +30,7 @@
 #include <OpenGL/gl.h>
 #include <OpenGL/glext.h>
 #else
-#ifdef GP2X
+#ifdef GL_VERSION_ES_CM_1_0
 #include <GLES/gl.h>
 #include <GLES/glext.h>
 #else
index c8088de..70b0e95 100644 (file)
@@ -191,7 +191,7 @@ TextureManager::save_texture(GL::Texture* texture)
   glBindTexture(GL_TEXTURE_2D, texture->get_handle());
 
   //this doesn't work with OpenGL ES (but we don't need it on the GP2X anyway)
-#ifndef GP2X
+#ifndef GL_VERSION_ES_CM_1_0
   glGetTexLevelParameteriv(GL_TEXTURE_2D, 0, GL_TEXTURE_WIDTH,
                            &saved_texture.width);
   glGetTexLevelParameteriv(GL_TEXTURE_2D, 0, GL_TEXTURE_HEIGHT,