diff options
author | Samuel Pitoiset <[email protected]> | 2016-05-25 21:17:24 +0200 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2016-06-09 21:03:28 +0200 |
commit | 5e2d25894b962aae9158261897e13843377e3b95 (patch) | |
tree | 43edfabccf7600c0f3dc43996091eb576e954ea9 /src/mesa/main | |
parent | 2c85128e015a401550046f47ce3e2dc0c0049540 (diff) |
mesa: Let compute shaders work in compatibility profiles
The extension is already advertised in compatibility profile, but
the _mesa_has_compute_shaders only returns true in core profile.
If we advertise it, we should allow it to work.
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Reviewed-by: Nanley Chery <[email protected]>
Diffstat (limited to 'src/mesa/main')
-rw-r--r-- | src/mesa/main/context.h | 2 |
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); } |