From: Marta Lofstedt Date: Thu, 21 Jan 2016 15:17:32 +0000 (+0100) Subject: mesa: Update _mesa_has_geometry_shaders X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3e640c256aa1bf0d3b2e14ddc23a8d84caddcb92;p=mesa.git 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 Reviewed-by: Ilia Mirkin Reviewed-by: Ian Romanick --- diff --git a/src/mesa/main/context.h b/src/mesa/main/context.h index 8b64f452572..46444d2c427 100644 --- a/src/mesa/main/context.h +++ b/src/mesa/main/context.h @@ -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); }