summaryrefslogtreecommitdiffstats
path: root/src/mesa/shader/slang/slang_codegen.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/shader/slang/slang_codegen.c')
-rw-r--r--src/mesa/shader/slang/slang_codegen.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/shader/slang/slang_codegen.c b/src/mesa/shader/slang/slang_codegen.c
index 2d8116850f9..0504d47765f 100644
--- a/src/mesa/shader/slang/slang_codegen.c
+++ b/src/mesa/shader/slang/slang_codegen.c
@@ -5008,6 +5008,7 @@ _slang_codegen_global_variable(slang_assemble_ctx *A, slang_variable *var,
}
#else
(void) is_rect_sampler_spec; /* silence warning */
+ (void) ctx;
#endif
{
GLint sampNum = _mesa_add_sampler(prog->Parameters, varName, datatype);