From: Marek Olšák Date: Thu, 28 May 2015 16:10:08 +0000 (+0200) Subject: mesa: use _mesa_has_geometry_shader in get_programiv X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3b2721ce1145cc60bf35e41e9f50a92849142a06;p=mesa.git mesa: use _mesa_has_geometry_shader in get_programiv Reviewed-by: Dave Airlie Reviewed-by: Brian Paul --- diff --git a/src/mesa/main/shaderapi.c b/src/mesa/main/shaderapi.c index 6d8e6e23e9c..a4296adf799 100644 --- a/src/mesa/main/shaderapi.c +++ b/src/mesa/main/shaderapi.c @@ -532,7 +532,7 @@ get_programiv(struct gl_context *ctx, GLuint program, GLenum pname, /* True if geometry shaders (of the form that was adopted into GLSL 1.50 * and GL 3.2) are available in this context */ - const bool has_core_gs = _mesa_is_desktop_gl(ctx) && ctx->Version >= 32; + const bool has_core_gs = _mesa_has_geometry_shaders(ctx); /* Are uniform buffer objects available in this context? */