mesa: pass gl_program to _mesa_associate_uniform_storage()
[mesa.git] / src / mesa / state_tracker / st_glsl_to_nir.cpp
index fd5eeea0f9a3a7c890629f70106f877566d93caa..524eefa236c655ae962663fed5862c84a0845271 100644 (file)
@@ -436,8 +436,7 @@ st_nir_get_mesa_program(struct gl_context *ctx,
     * prog->ParameterValues to get reallocated (e.g., anything that adds a
     * program constant) has to happen before creating this linkage.
     */
-   _mesa_associate_uniform_storage(ctx, shader_program, prog->Parameters,
-                                   true);
+   _mesa_associate_uniform_storage(ctx, shader_program, prog, true);
 
    struct st_vertex_program *stvp;
    struct st_fragment_program *stfp;