Skip to content
Snippets Groups Projects
Commit 093b2066 authored by Emma Anholt's avatar Emma Anholt
Browse files

glsl: Set the uniform_block index for the linked shader variables.


At this point in the linking, we've totally lost track of the struct
gl_uniform_buffer that this pointed to in the original unlinked
shader, so we do a nasty n^2 walk to find it the new one based on the
variable name.

Note that these point into the shader's list of gl_uniform_buffers,
not the linked program's.

Reviewed-by: default avatarIan Romanick <ian.d.romanick@intel.com>
parent 9f1a4a63
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment