From 9355ee0bb2a3cee71f3f9216c937da587f475f61 Mon Sep 17 00:00:00 2001 From: Marek Moeckel Date: Wed, 17 Sep 2008 16:41:46 +0000 Subject: [PATCH] switched to the flag used in other places SVN-Revision: 5772 --- src/video/glutil.hpp | 2 +- src/video/texture_manager.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/video/glutil.hpp b/src/video/glutil.hpp index 3a5845ab3..c1b45bea5 100644 --- a/src/video/glutil.hpp +++ b/src/video/glutil.hpp @@ -30,7 +30,7 @@ #include #include #else -#ifdef GP2X +#ifdef GL_VERSION_ES_CM_1_0 #include #include #else diff --git a/src/video/texture_manager.cpp b/src/video/texture_manager.cpp index c8088de1d..70b0e950c 100644 --- a/src/video/texture_manager.cpp +++ b/src/video/texture_manager.cpp @@ -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, -- 2.11.0