mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
mesa: Update _mesa_has_geometry_shaders
Updates the _mesa_has_geometry_shaders function to also look for OpenGL ES 3.1 contexts that has OES_geometry_shader enabled. Reviewed-by: Matt Turner <mattst88@gmail.com> Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
This commit is contained in:
parent
ae4e4ba06d
commit
3e640c256a
1 changed files with 2 additions and 1 deletions
|
|
@ -330,7 +330,8 @@ _mesa_is_gles31(const struct gl_context *ctx)
|
|||
static inline bool
|
||||
_mesa_has_geometry_shaders(const struct gl_context *ctx)
|
||||
{
|
||||
return _mesa_is_desktop_gl(ctx) && ctx->Version >= 32;
|
||||
return _mesa_has_OES_geometry_shader(ctx) ||
|
||||
(_mesa_is_desktop_gl(ctx) && ctx->Version >= 32);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue