diff options
author | Zack Rusin <[email protected]> | 2010-06-29 21:45:41 -0400 |
---|---|---|
committer | Zack Rusin <[email protected]> | 2010-06-29 21:45:41 -0400 |
commit | 0d68d01347383a8878c9678706cc3bd212b54bbd (patch) | |
tree | d181da9ef377125911fc472eb332abf46d032c5b /src/glsl | |
parent | b939f83eb7af8f818c638453b2d2522b2362a831 (diff) |
mesa: make the arguments in the asm statemants optional
geometry shaders emit/end functions don't take any arguments
Diffstat (limited to 'src/glsl')
-rw-r--r-- | src/glsl/cl/sl_cl_parse.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/glsl/cl/sl_cl_parse.c b/src/glsl/cl/sl_cl_parse.c index 65df6c38ae7..09456f5219a 100644 --- a/src/glsl/cl/sl_cl_parse.c +++ b/src/glsl/cl/sl_cl_parse.c @@ -2191,9 +2191,8 @@ _parse_asm_statement(struct parse_context *ctx, if (_parse_identifier(ctx, &p)) { return -1; } - if (_parse_asm_arguments(ctx, &p)) { - return -1; - } + /* optional arguments */ + _parse_asm_arguments(ctx, &p); if (_parse_token(ctx, SL_PP_SEMICOLON, &p)) { return -1; } |