]> git.tdb.fi Git - libs/gl.git/commit
Don't add both location and binding to the same uniform
authorMikko Rasa <tdb@tdb.fi>
Thu, 28 Dec 2023 19:08:39 +0000 (21:08 +0200)
committerMikko Rasa <tdb@tdb.fi>
Fri, 29 Dec 2023 07:32:39 +0000 (09:32 +0200)
commit6911bfb466ce6defd800377618d4cf8cb4a0904b
treef62d3cd4117b6e32c2a6362350bdf48bdb9ae76c
parent0f45419334a4156c6783cc50efd5f302914f1237
Don't add both location and binding to the same uniform

It's unclear from the GLSL spec if this is allowed or not, but Intel
driver refuses to compile such shaders and it causes weird behaviour
on AMD too.
source/glsl/finalize.cpp
tests/glsl/arithmetic_assignment.glsl
tests/glsl/constructors.glsl
tests/glsl/function_overloading.glsl
tests/glsl/parentheses.glsl
tests/glsl/uniform_location_allocation.glsl