glsl/standalone: init EmptyUniformLocations

This updates the scaffolding to reflect init_shader_program() and
will be required in the following patch to avoid a segfault.

Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30034>
This commit is contained in:
Timothy Arceri 2024-07-04 13:22:41 +10:00 committed by Marge Bot
parent 5ae5229e3d
commit 2f5b99ec17

View file

@ -307,6 +307,8 @@ standalone_create_shader_program(void)
whole_program->FragDataBindings = new string_to_uint_map;
whole_program->FragDataIndexBindings = new string_to_uint_map;
exec_list_make_empty(&whole_program->EmptyUniformLocations);
return whole_program;
}