mesa: add missing switch case for EXTRA_VERSION_40 in check_extra()
authorBrian Paul <brianp@vmware.com>
Tue, 13 Feb 2018 16:21:45 +0000 (09:21 -0700)
committerBrian Paul <brianp@vmware.com>
Tue, 13 Feb 2018 17:35:55 +0000 (10:35 -0700)
The EXTRA_VERSION_40 predicate is tested as part of
extra_gl40_ARB_sample_shading but there was no switch case for it.

Fixes: 77b440e42d8e7247c2295 ("mesa: Add new functions and enums required
by GL_ARB_sample_shading")
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
src/mesa/main/get.c

index 218801791e28b42613f9bdae8e34a6a74bfb9150..57a211856c90ac634edb44c7ba4c20950026270f 100644 (file)
@@ -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);