summaryrefslogtreecommitdiff
path: root/src/mesa/main/shaderobj.c
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2010-07-02 15:34:58 -0600
committerBrian Paul <brianp@vmware.com>2010-07-02 15:36:14 -0600
commitae8164a67b05cdc6d9b520b9704330537f3a6024 (patch)
treeb523da694edbb1ab6f6ed43a685e56089e18909f /src/mesa/main/shaderobj.c
parentd981bde38472d8d3bb74dab67eccd7c82915a566 (diff)
mesa: add geometry shader fields to gl_shader_program
These 3 fields are per shader-program. Copy them into the geometry program at link time for convenient access later. Also, add some missing glGetProgramiv() queries.
Diffstat (limited to 'src/mesa/main/shaderobj.c')
-rw-r--r--src/mesa/main/shaderobj.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/main/shaderobj.c b/src/mesa/main/shaderobj.c
index 00bc510ee8..14bbb2e4bc 100644
--- a/src/mesa/main/shaderobj.c
+++ b/src/mesa/main/shaderobj.c
@@ -241,6 +241,11 @@ _mesa_new_shader_program(GLcontext *ctx, GLuint name)
shProg->Name = name;
shProg->RefCount = 1;
shProg->Attributes = _mesa_new_parameter_list();
+#if FEATURE_ARB_geometry_shader4
+ shProg->Geom.VerticesOut = 0;
+ shProg->Geom.InputType = GL_TRIANGLES;
+ shProg->Geom.OutputType = GL_TRIANGLE_STRIP;
+#endif
}
return shProg;
}