]> git.tdb.fi Git - libs/gl.git/commit
Avoid removing outputs which are referenced but not assigned
authorMikko Rasa <tdb@tdb.fi>
Tue, 9 Mar 2021 20:27:04 +0000 (22:27 +0200)
committerMikko Rasa <tdb@tdb.fi>
Tue, 9 Mar 2021 20:29:11 +0000 (22:29 +0200)
commit5b33d00373c6f4953d684f8cc75c9353df469735
tree67fd6333412144951e1aeb3e64f3da72777eb888
parent30f676460bb6e87fd7ca2532e507b97965c4a407
Avoid removing outputs which are referenced but not assigned

The values from such reads are undefined but the variables should be
kept nevertheless.
source/glsl/optimize.cpp
tests/glsl/referenced_but_unassigned_output.glsl [new file with mode: 0644]