summaryrefslogtreecommitdiffstats
path: root/src/compiler/glsl/test_optpass.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/compiler/glsl/test_optpass.cpp')
-rw-r--r--src/compiler/glsl/test_optpass.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/glsl/test_optpass.cpp b/src/compiler/glsl/test_optpass.cpp
index fed1fabf301..f19d7e6e6d5 100644
--- a/src/compiler/glsl/test_optpass.cpp
+++ b/src/compiler/glsl/test_optpass.cpp
@@ -200,7 +200,7 @@ int test_optpass(int argc, char **argv)
struct gl_context *ctx = &local_ctx;
initialize_context_to_defaults(ctx, API_OPENGL_COMPAT);
- ctx->Driver.NewShader = _mesa_new_shader;
+ ctx->Driver.NewShader = _mesa_new_linked_shader;
ir_variable::temporaries_allocate_names = true;
struct gl_shader *shader = rzalloc(NULL, struct gl_shader);