summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/mesa/main/glformats.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/glformats.c b/src/mesa/main/glformats.c
index 174f17d882d..79d7e881b31 100644
--- a/src/mesa/main/glformats.c
+++ b/src/mesa/main/glformats.c
@@ -2411,7 +2411,7 @@ _mesa_base_tex_format(const struct gl_context *ctx, GLint internalFormat)
}
}
- if (ctx->Extensions.EXT_texture_snorm) {
+ if (_mesa_has_EXT_texture_snorm(ctx) || _mesa_is_gles3(ctx)) {
switch (internalFormat) {
case GL_RED_SNORM:
case GL_R8_SNORM: