mirror of
https://github.com/love2d/love.git
synced 2026-08-15 15:51:12 +02:00
Centralize NPOT support check for image, export it to isSupported
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user