mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 11:48:06 +02:00
glsl: Initialize gl_shader_program::EmptyUniformLocations.
Commit65dfb30added exec_list EmptyUniformLocations, but only initialized the list if ARB_explicit_uniform_location was enabled, leading to crashes if the extension was not available. Cc: "11.2" <mesa-stable@lists.freedesktop.org> Reviewed-by: Tapani Pälli <tapani.palli@intel.com> (cherry picked from commitf3b68fc5fc)
This commit is contained in:
parent
50c678c706
commit
caa10464ab
2 changed files with 2 additions and 1 deletions
|
|
@ -3180,7 +3180,6 @@ check_explicit_uniform_locations(struct gl_context *ctx,
|
|||
}
|
||||
}
|
||||
|
||||
exec_list_make_empty(&prog->EmptyUniformLocations);
|
||||
struct empty_uniform_block *current_block = NULL;
|
||||
|
||||
for (unsigned i = 0; i < prog->NumUniformRemapTable; i++) {
|
||||
|
|
|
|||
|
|
@ -240,6 +240,8 @@ init_shader_program(struct gl_shader_program *prog)
|
|||
|
||||
prog->TransformFeedback.BufferMode = GL_INTERLEAVED_ATTRIBS;
|
||||
|
||||
exec_list_make_empty(&prog->EmptyUniformLocations);
|
||||
|
||||
prog->InfoLog = ralloc_strdup(prog, "");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue