diff options
author | Ian Romanick <[email protected]> | 2016-05-23 15:53:10 -0700 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2016-06-01 11:11:39 -0700 |
commit | a428c955ce5d039e035e49da6daa13088ec8617c (patch) | |
tree | 9431528290322fa34a3142cd5c6e358c01745e57 /src/mesa/main | |
parent | b27dfa5403ed1884999524417c08d2bc50365965 (diff) |
glsl: Use Geom.VerticesOut == -1 to specify unset
Because apparently layout(max_vertices=0) is a thing.
Signed-off-by: Ian Romanick <[email protected]>
Reviewed-by: Ilia Mirkin <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Cc: "12.0" <[email protected]>
Diffstat (limited to 'src/mesa/main')
-rw-r--r-- | src/mesa/main/shaderobj.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/shaderobj.c b/src/mesa/main/shaderobj.c index 274cb129b07..189317c3a46 100644 --- a/src/mesa/main/shaderobj.c +++ b/src/mesa/main/shaderobj.c @@ -232,7 +232,7 @@ init_shader_program(struct gl_shader_program *prog) prog->FragDataBindings = string_to_uint_map_ctor(); prog->FragDataIndexBindings = string_to_uint_map_ctor(); - prog->Geom.VerticesOut = 0; + prog->Geom.VerticesOut = -1; prog->Geom.InputType = GL_TRIANGLES; prog->Geom.OutputType = GL_TRIANGLE_STRIP; prog->Geom.UsesEndPrimitive = false; |