mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 09:08:10 +02:00
mesa: use _mesa_has_geometry_shader in get_programiv
Reviewed-by: Dave Airlie <airlied@redhat.com> Reviewed-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
parent
b7ef7903b8
commit
3b2721ce11
1 changed files with 1 additions and 1 deletions
|
|
@ -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?
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue