mesa: fix GL_MAX_SAMPLES with GLES2
authorErico Nunes <nunes.erico@gmail.com>
Fri, 26 Nov 2021 18:59:29 +0000 (19:59 +0100)
committerMarge Bot <emma+marge@anholt.net>
Sat, 11 Dec 2021 01:31:59 +0000 (01:31 +0000)
commit013900c4d231e3d9e976d2e03a1e49825cc16f99
tree2fdc312efb8334fd11cc47d0cb0b28e6111d3c5e
parentc02b75d22e6f3cdb82c4fbcb88e18d55aa9bb414
mesa: fix GL_MAX_SAMPLES with GLES2

EXT_multisampled_render_to_texture on GLES2 allows the
GL_MAX_SAMPLES_EXT enum to be used.

Move the condition from the GLES3 section to the GLES2 one so
that it stops returning GL_INVALID_ENUM in that case.

Signed-off-by: Erico Nunes <nunes.erico@gmail.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13967>
src/mesa/main/get.c
src/mesa/main/get_hash_params.py
src/panfrost/ci/panfrost-t720-fails.txt