mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-26 10:18:12 +02:00
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 <samuel.pitoiset@gmail.com> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Nanley Chery <nanley.g.chery@intel.com>
This commit is contained in:
parent
2c85128e01
commit
5e2d25894b
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue