summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/mesa/main/context.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/context.h b/src/mesa/main/context.h
index ef19cc68d2d..593ced53d77 100644
--- a/src/mesa/main/context.h
+++ b/src/mesa/main/context.h
@@ -343,7 +343,7 @@ _mesa_has_geometry_shaders(const struct gl_context *ctx)
static inline bool
_mesa_has_compute_shaders(const struct gl_context *ctx)
{
- return (ctx->API == API_OPENGL_CORE && ctx->Extensions.ARB_compute_shader) ||
+ return _mesa_has_ARB_compute_shader(ctx) ||
(ctx->API == API_OPENGLES2 && ctx->Version >= 31);
}