Browse Source

Check for OpenGL 2.0 in NPOT check (issue #538)

Bart van Strien 12 years ago
parent
commit
b97765b169
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/modules/graphics/opengl/Image.cpp

+ 1 - 1
src/modules/graphics/opengl/Image.cpp

@@ -357,7 +357,7 @@ void Image::drawv(const Matrix &t, const vertex *v) const
 
 bool Image::hasNpot()
 {
-	return GLEE_ARB_texture_non_power_of_two != 0;
+	return GLEE_VERSION_2_0 || GLEE_ARB_texture_non_power_of_two;
 }
 
 bool Image::hasMipmapSupport()