aboutsummaryrefslogtreecommitdiff
path: root/backends/graphics/opengl
diff options
context:
space:
mode:
Diffstat (limited to 'backends/graphics/opengl')
-rw-r--r--backends/graphics/opengl/context.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/backends/graphics/opengl/context.cpp b/backends/graphics/opengl/context.cpp
index 478d98c19a..c149b12f19 100644
--- a/backends/graphics/opengl/context.cpp
+++ b/backends/graphics/opengl/context.cpp
@@ -194,7 +194,7 @@ void OpenGLGraphicsManager::initializeGLContext() {
while (!tokenizer.empty()) {
Common::String token = tokenizer.nextToken();
- if (token == "GL_ARB_texture_non_power_of_two") {
+ if (token == "GL_ARB_texture_non_power_of_two" || token == "GL_OES_texture_npot") {
g_context.NPOTSupported = true;
} else if (token == "GL_ARB_shader_objects") {
ARBShaderObjects = true;
@@ -214,6 +214,9 @@ void OpenGLGraphicsManager::initializeGLContext() {
}
if (g_context.type == kContextGLES2) {
+ // GLES2 always has (limited) NPOT support.
+ g_context.NPOTSupported = true;
+
// GLES2 always has shader support.
g_context.shadersSupported = true;