* Add Airship (regular above-ground theme) and Battle (castle/boss theme) music court...
[supertux.git] / src / video / texture_manager.cpp
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,