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
@@ -791,6 +791,10 @@ namespace opengl
if (!PixelEffect::isSupported())
supported = false;
break;
case Graphics::SUPPORT_NPOT:
if (!Image::hasNpot())
supported = false;
break;
default:
supported = false;
}