Centralize NPOT support check for image, export it to isSupported

This commit is contained in:
Bart van Strien
2011-10-24 17:43:56 +02:00
parent a6eca47cef
commit d8b1d67a34
5 changed files with 14 additions and 2 deletions
+6 -1
View File
@@ -278,7 +278,7 @@ namespace opengl
bool Image::loadVolatile()
{
if (GLEE_ARB_texture_non_power_of_two)
if (hasNpot())
return loadVolatileNPOT();
else
return loadVolatilePOT();
@@ -387,6 +387,11 @@ namespace opengl
glPopMatrix();
}
bool Image::hasNpot()
{
return GLEE_ARB_texture_non_power_of_two;
}
} // opengl
} // graphics
} // love