From: Michal Krol Date: Fri, 4 Sep 2009 09:33:15 +0000 (+0200) Subject: glsl: Handle extension tokens in apps/proces. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7f187583c14448047c95d933a96b190273a881e5;p=mesa.git glsl: Handle extension tokens in apps/proces. --- diff --git a/src/glsl/apps/process.c b/src/glsl/apps/process.c index 9a450ce5a7b..b40ad442bbb 100644 --- a/src/glsl/apps/process.c +++ b/src/glsl/apps/process.c @@ -328,6 +328,22 @@ main(int argc, fprintf(out, "#pragma debug(%s)", outtokens[i].data.pragma ? "on" : "off"); break; + case SL_PP_EXTENSION_REQUIRE: + fprintf(out, "#extension %s : require", sl_pp_context_cstr(&context, outtokens[i].data.extension)); + break; + + case SL_PP_EXTENSION_ENABLE: + fprintf(out, "#extension %s : enable", sl_pp_context_cstr(&context, outtokens[i].data.extension)); + break; + + case SL_PP_EXTENSION_WARN: + fprintf(out, "#extension %s : warn", sl_pp_context_cstr(&context, outtokens[i].data.extension)); + break; + + case SL_PP_EXTENSION_DISABLE: + fprintf(out, "#extension %s : disable", sl_pp_context_cstr(&context, outtokens[i].data.extension)); + break; + default: assert(0); }