This fixes use of compute shaders with some NVIDIA GL 4.3 samples which require a compat profile.
Signed-off-by: Samuel Pitoiset <samuel.pitoi...@gmail.com> --- src/mesa/main/context.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/main/context.h b/src/mesa/main/context.h index 46444d2..7152f7a 100644 --- a/src/mesa/main/context.h +++ b/src/mesa/main/context.h @@ -341,7 +341,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); } -- 2.8.3 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev