]> git.tdb.fi Git - libs/gl.git/commit
Limit GLSL passthrough statement to variables declared by that point
authorMikko Rasa <tdb@tdb.fi>
Fri, 12 Mar 2021 09:53:11 +0000 (11:53 +0200)
committerMikko Rasa <tdb@tdb.fi>
Fri, 12 Mar 2021 18:27:38 +0000 (20:27 +0200)
commit9229a3e70dace406d897148857ed6567986c3bcd
tree566d775d44ce58204e5457cdeec1f043c9156ee2
parentd1feb41b3ff4dd462f50891e8901bad39466b75c
Limit GLSL passthrough statement to variables declared by that point

This fixes an issue where a base module's passthrough statement would
generate references to inputs declared in an importing module, resulting
in a compile error.
source/glsl/generate.cpp
source/glsl/generate.h
tests/glsl/passthrough_declaration_order.glsl [new file with mode: 0644]