mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-23 22:00:13 +01:00
mesa/main: verify more texture-limits for GL 4.1
OpenGL 4.1 also increased the minimum 3D and cube texture size as well as the minimum number of texture-array layers. Let's also verify these to prevent enbaling too recent GL versions on layered drivers link Zink, VirGL etc. Reviewed-by: Jesse Natalie <jenatali@microsoft.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19780>
This commit is contained in:
parent
dc770eb9bb
commit
2658d02516
1 changed files with 3 additions and 0 deletions
|
|
@ -335,6 +335,9 @@ compute_version(const struct gl_extensions *extensions,
|
||||||
consts->GLSLVersion >= 410 &&
|
consts->GLSLVersion >= 410 &&
|
||||||
consts->MaxTextureSize >= 16384 &&
|
consts->MaxTextureSize >= 16384 &&
|
||||||
consts->MaxRenderbufferSize >= 16384 &&
|
consts->MaxRenderbufferSize >= 16384 &&
|
||||||
|
consts->MaxCubeTextureLevels >= 15 &&
|
||||||
|
consts->Max3DTextureLevels >= 12 &&
|
||||||
|
consts->MaxArrayTextureLayers >= 2048 &&
|
||||||
extensions->ARB_ES2_compatibility &&
|
extensions->ARB_ES2_compatibility &&
|
||||||
extensions->ARB_shader_precision &&
|
extensions->ARB_shader_precision &&
|
||||||
extensions->ARB_vertex_attrib_64bit &&
|
extensions->ARB_vertex_attrib_64bit &&
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue