glsl: add new uniform fields to be used to restore state from cache
Signed-off-by: Timothy Arceri <timothy.arceri@collabora.com> Reviewed-by: Eric Anholt <eric@anholt.net>
This commit is contained in:

committed by
Timothy Arceri

parent
0f60c6616e
commit
b8cb1a05cd
@@ -1265,6 +1265,10 @@ link_assign_uniform_storage(struct gl_context *ctx,
|
||||
|
||||
link_setup_uniform_remap_tables(ctx, prog);
|
||||
|
||||
/* Set shader cache fields */
|
||||
prog->data->NumUniformDataSlots = num_data_slots;
|
||||
prog->data->UniformDataSlots = data;
|
||||
|
||||
link_set_uniform_initializers(prog, boolean_true);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user