mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 17:48:10 +02:00
mesa/version: only enable GL4.1 with correct limits.
I haven't tested all the limits, but these two should be enough for driver writers to realise. I've also submitted a minmax test for piglit to test this. Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5727>
This commit is contained in:
parent
1a83279da5
commit
0ca266025a
1 changed files with 2 additions and 0 deletions
|
|
@ -330,6 +330,8 @@ compute_version(const struct gl_extensions *extensions,
|
|||
extensions->ARB_transform_feedback3);
|
||||
const bool ver_4_1 = (ver_4_0 &&
|
||||
consts->GLSLVersion >= 410 &&
|
||||
consts->MaxTextureSize >= 16384 &&
|
||||
consts->MaxRenderbufferSize >= 16384 &&
|
||||
extensions->ARB_ES2_compatibility &&
|
||||
extensions->ARB_shader_precision &&
|
||||
extensions->ARB_vertex_attrib_64bit &&
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue