]> git.tdb.fi Git - libs/gl.git/commit
Validate GLSL flow control
authorMikko Rasa <tdb@tdb.fi>
Wed, 7 Apr 2021 20:49:31 +0000 (23:49 +0300)
committerMikko Rasa <tdb@tdb.fi>
Wed, 7 Apr 2021 20:50:26 +0000 (23:50 +0300)
commit9d9e008291a447b5d192e724e9022180503c8c3e
treefe368f3fb2fd0bbf7cc0836ec16338baac5e4a3e
parent7563b92050d7c249c9ce848c1310dbfb993eadb7
Validate GLSL flow control

In particular, it's an error to reach the end of a non-void function
without a return statement.
source/glsl/compiler.cpp
source/glsl/validate.cpp
source/glsl/validate.h
tests/glsl/dead_code.glsl
tests/glsl/function_override.glsl
tests/glsl/invalid_subscript.glsl
tests/glsl/no_op_conversion.glsl
tests/glsl/unused_component_assignment.glsl