summaryrefslogtreecommitdiffstats
path: root/src/mesa/shader/slang/slang_compile.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/shader/slang/slang_compile.c')
-rw-r--r--src/mesa/shader/slang/slang_compile.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/shader/slang/slang_compile.c b/src/mesa/shader/slang/slang_compile.c
index e7938e55ad9..b6b1f3c9906 100644
--- a/src/mesa/shader/slang/slang_compile.c
+++ b/src/mesa/shader/slang/slang_compile.c
@@ -2494,6 +2494,7 @@ init_default_precision(slang_output_ctx *O, slang_unit_type type)
else
O->default_precision[i] = PRECISION_HIGH;
#else
+ (void) ctx;
O->default_precision[i] = PRECISION_HIGH;
#endif
}
@@ -2743,6 +2744,8 @@ compile_with_grammar(const char *source,
return GL_FALSE;
}
}
+#else
+ (void) ctx;
#endif
#if FEATURE_ARB_shading_language_120