mesa: do not allow es2-extension enums for es1

Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8028>
This commit is contained in:
Erik Faye-Lund 2020-12-10 12:10:12 +01:00 committed by Marge Bot
parent 4eaff8dba7
commit 47eb9b865d
1 changed files with 1 additions and 1 deletions

View File

@ -99,7 +99,7 @@ pixel_storei(GLenum pname, GLint param, bool no_error)
ctx->Pack.Invert = param;
break;
case GL_PACK_REVERSE_ROW_ORDER_ANGLE:
if (!no_error && !_mesa_is_gles(ctx))
if (!no_error && !_mesa_has_ANGLE_pack_reverse_row_order(ctx))
goto invalid_enum_error;
ctx->Pack.Invert = param;
break;