Replaced GL_ARB_texture_non_power_of_two with proper GLEW_ARB_texture_non_power_of_two
authorIngo Ruhnke <grumbel@gmx.de>
Sun, 6 Dec 2009 22:44:50 +0000 (22:44 +0000)
committerIngo Ruhnke <grumbel@gmx.de>
Sun, 6 Dec 2009 22:44:50 +0000 (22:44 +0000)
SVN-Revision: 6189

src/video/gl/gl_renderer.cpp
src/video/gl/gl_texture.cpp

index b578977..7e6ce77 100644 (file)
@@ -180,7 +180,7 @@ GLRenderer::GLRenderer() :
     throw std::runtime_error(out.str());
   }
   log_info << "Using GLEW " << glewGetString(GLEW_VERSION) << std::endl;
-  log_info << "GL_ARB_texture_non_power_of_two: " << GL_ARB_texture_non_power_of_two << std::endl;
+  log_info << "GLEW_ARB_texture_non_power_of_two: " << GLEW_ARB_texture_non_power_of_two << std::endl;
 #endif
 }
 
index ca56a98..c703771 100644 (file)
@@ -77,7 +77,7 @@ GLTexture::GLTexture(SDL_Surface* image) :
   texture_width = next_power_of_two(image->w);
   texture_height = next_power_of_two(image->h);
 #else
-  if (GL_ARB_texture_non_power_of_two)
+  if (GLEW_ARB_texture_non_power_of_two)
   {
     texture_width  = image->w;
     texture_height = image->h;