summaryrefslogtreecommitdiffstats
path: root/src/glsl/pp/sl_pp_public.h
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2010-02-16 10:42:05 -0700
committerBrian Paul <[email protected]>2010-02-16 10:43:36 -0700
commitde5928a61549a6ca66e6b9ff6e50b305f653888c (patch)
tree7eec9b42a9420533b632cd2f39dc5fdafbcb0011 /src/glsl/pp/sl_pp_public.h
parentf7aea808a4724a9e50bf3afa5a1bf547d0da5d65 (diff)
sl/pp: re-do extension testing code
The #extension directive should not effect which extension preprocessor symbols are defined/undefined; only whether/how the compiler accepts language features defined by the extension.
Diffstat (limited to 'src/glsl/pp/sl_pp_public.h')
-rw-r--r--src/glsl/pp/sl_pp_public.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/glsl/pp/sl_pp_public.h b/src/glsl/pp/sl_pp_public.h
index ca6f722543d..e4ad80d0b2a 100644
--- a/src/glsl/pp/sl_pp_public.h
+++ b/src/glsl/pp/sl_pp_public.h
@@ -55,6 +55,10 @@ int
sl_pp_context_add_extension(struct sl_pp_context *context,
const char *name);
+enum sl_pp_extension_state
+sl_pp_get_extension_state(const struct sl_pp_context *context,
+ int extension_name);
+
int
sl_pp_context_add_predefined(struct sl_pp_context *context,
const char *name,