array initialisation bug with glsl on 8800 cards
Hello, i have experienced a strange bug in glsl fragment shader on 8800 cards.
The bug affect array of initialization.
If i declare an array of floats, and after i initialize the array to 0.0 :
if i replace f[i]=0 by f[i] = 0.000001, the compiler of course don't discard the code.
in the following code :
the array is not allway nullified, so instead of having a uniform dark greay on the screen, i have some rubbish.
In fact, after a cold boot, the test app which use this shader behave correctly, but after launching some app which use big shader (shaders which need lot of temporary registry), the shader fail.
Of course the fix is easy, i just have to initialise the array to epsilon instead of 0.0, and all is correct.
Does anyone experienced similar bug in glsl ?
ps: driver version 9755.
|All times are GMT -5. The time now is 11:51 PM.|
Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2015, Jelsoft Enterprises Ltd.
Copyright ©1998 - 2014, nV News.