summaryrefslogtreecommitdiff
path: root/src/mesa/shader/shader_api.c
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2009-06-17 11:57:39 -0600
committerBrian Paul <brianp@vmware.com>2009-06-26 13:16:32 -0600
commit4031ea1520f582fa36a6b964de7d565fe33a538d (patch)
tree039478d1e207684147dd3b39518929312918da5b /src/mesa/shader/shader_api.c
parent84c5e4805b9e4d2f87137af64de8418b29c7a8f6 (diff)
glsl: Added gl_shader_state::EmitContReturn field
This is the start of a glsl-continue-return feature branch to support a GLSL code generator option for 'continue' and 'return' statements. Some targets don't support CONT or RET statements so we'll need to try to generate code that does not use them...
Diffstat (limited to 'src/mesa/shader/shader_api.c')
-rw-r--r--src/mesa/shader/shader_api.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/shader/shader_api.c b/src/mesa/shader/shader_api.c
index 644cd39185..cf9f8b9222 100644
--- a/src/mesa/shader/shader_api.c
+++ b/src/mesa/shader/shader_api.c
@@ -402,6 +402,7 @@ _mesa_init_shader_state(GLcontext * ctx)
* are generated by the GLSL compiler.
*/
ctx->Shader.EmitHighLevelInstructions = GL_TRUE;
+ ctx->Shader.EmitContReturn = GL_TRUE;
ctx->Shader.EmitCondCodes = GL_FALSE;
ctx->Shader.EmitComments = GL_FALSE;
ctx->Shader.Flags = get_shader_flags();