diff options
author | Erik Faye-Lund <[email protected]> | 2018-07-04 14:40:25 +0200 |
---|---|---|
committer | Erik Faye-Lund <[email protected]> | 2018-07-09 17:32:31 +0200 |
commit | 2e64a2f2d1f83c9f0ec6ba31ed92620abf221f86 (patch) | |
tree | 780ba8b439c37009e5de3075c19c0c7ef6fe8e48 /src | |
parent | 747cf468ff41067513b6893e2fcd2b22b18e1c9b (diff) |
mesa: verify MaxVertexAttribStride for GL 4.4
The OpenGL 4.4 specification, table Table 23.55 ("Implementation
Dependent Values"), defines the minimum-maximum value for
MAX_VERTEX_ATTRIB_STRIDE to be 2048.
So we shouldn't enable OpenGL 4.4 on implementations where this isn't
the case. Let's add a check for this.
Signed-off-by: Erik Faye-Lund <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/main/version.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/main/version.c b/src/mesa/main/version.c index 2ba4c0b57f8..0b0d5b79d63 100644 --- a/src/mesa/main/version.c +++ b/src/mesa/main/version.c @@ -369,6 +369,7 @@ compute_version(const struct gl_extensions *extensions, extensions->ARB_texture_view); const bool ver_4_4 = (ver_4_3 && consts->GLSLVersion >= 440 && + consts->MaxVertexAttribStride >= 2048 && extensions->ARB_buffer_storage && extensions->ARB_clear_texture && extensions->ARB_enhanced_layouts && |