mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 13:28:06 +02:00
mesa/main: do not allow snorm-texture enums before gles3
ctx->Extensions.EXT_texture_snorm is set regardless of the API that's used, so checking for those direcly will always allow the enums from this extensions when they are supported by the driver. There's no extension adding support for this on OpenGL ES before version 3.0, so let's tighten the check. Signed-off-by: Erik Faye-Lund <erik.faye-lund@collabora.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
parent
52dc8b4f7b
commit
3629ee025c
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue