diff options
author | Michal Krol <[email protected]> | 2009-06-26 11:44:43 +0200 |
---|---|---|
committer | Michal Krol <[email protected]> | 2009-09-07 10:11:50 +0200 |
commit | 3b027bca9d54383b2fc8b2ad5a9cb6d2166c7acc (patch) | |
tree | b7a9904765a0ff67e1c50705bae0fc7975c46b6e /src/glsl/pp/sl_pp_context.c | |
parent | 3bb446ba6e890bc3f60a34318a5a0fe860e53cbb (diff) |
glsl: Support if preprocessor directive and friends.
Diffstat (limited to 'src/glsl/pp/sl_pp_context.c')
-rw-r--r-- | src/glsl/pp/sl_pp_context.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/glsl/pp/sl_pp_context.c b/src/glsl/pp/sl_pp_context.c index 6d3076b8697..1afe9a5d5e0 100644 --- a/src/glsl/pp/sl_pp_context.c +++ b/src/glsl/pp/sl_pp_context.c @@ -33,6 +33,8 @@ void sl_pp_context_init(struct sl_pp_context *context) { memset(context, 0, sizeof(struct sl_pp_context)); + context->if_ptr = SL_PP_MAX_IF_NESTING; + context->if_value = 1; } void |