[Mesa-dev] [PATCH] mesa: add missing switch case for EXTRA_VERSION_40 in check_extra()
Brian Paul
brianp at vmware.com
Tue Feb 13 16:29:26 UTC 2018
The EXTRA_VERSION_40 predicate is tested as part of
extra_gl40_ARB_sample_shading but there was no switch case for it.
---
src/mesa/main/get.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/mesa/main/get.c b/src/mesa/main/get.c
index 2188017..57a2118 100644
--- a/src/mesa/main/get.c
+++ b/src/mesa/main/get.c
@@ -1224,6 +1224,11 @@ check_extra(struct gl_context *ctx, const char *func, const struct value_desc *d
if (version >= 32)
api_found = GL_TRUE;
break;
+ case EXTRA_VERSION_40:
+ api_check = GL_TRUE;
+ if (version >= 40)
+ api_found = GL_TRUE;
+ break;
case EXTRA_NEW_FRAG_CLAMP:
if (ctx->NewState & (_NEW_BUFFERS | _NEW_FRAG_CLAMP))
_mesa_update_state(ctx);
--
2.7.4
More information about the mesa-dev
mailing list