projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b7ef790
)
mesa: use _mesa_has_geometry_shader in get_programiv
author
Marek Olšák
<marek.olsak@amd.com>
Thu, 28 May 2015 16:10:08 +0000
(18:10 +0200)
committer
Marek Olšák
<marek.olsak@amd.com>
Fri, 5 Jun 2015 17:44:32 +0000
(19:44 +0200)
Reviewed-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/main/shaderapi.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/shaderapi.c
b/src/mesa/main/shaderapi.c
index 6d8e6e23e9ce31b242ea9918dcb41075d47ed1fa..a4296adf7991877e975b907b30ed12215361795e 100644
(file)
--- 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?
*/