aboutsummaryrefslogtreecommitdiff
path: root/mesalib/src/glsl/test_optpass.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'mesalib/src/glsl/test_optpass.cpp')
-rw-r--r--mesalib/src/glsl/test_optpass.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/mesalib/src/glsl/test_optpass.cpp b/mesalib/src/glsl/test_optpass.cpp
index 24c06f11b..ac3e3f48c 100644
--- a/mesalib/src/glsl/test_optpass.cpp
+++ b/mesalib/src/glsl/test_optpass.cpp
@@ -200,6 +200,7 @@ int test_optpass(int argc, char **argv)
initialize_context_to_defaults(ctx, API_OPENGL_COMPAT);
ctx->Driver.NewShader = _mesa_new_shader;
+ ir_variable::temporaries_allocate_names = true;
struct gl_shader *shader = rzalloc(NULL, struct gl_shader);
shader->Type = shader_type;