Are you doing this in a subroutine called from your shader main? If so, does the same occur if you inline that subroutine into main?Graf Zahl wrote:...I did some further tests with much more simplified data and shaders. It doesn't crash anymore but it exhibits some really odd behavior which looks like a driver bug....
4. Swap lines 12 and 13 in the shader (vec4 light =... and vec4 texel =...) and run again.
No matter what I do, I either get the texture data or the texture buffer data, but never both at the same time.
This does sound a bit odd but I must admit to only having limited working experience with shaders.