290.x, 295.x depend on shader source after compilation
Beginning with the 290.x series, changing the source string of a shader after compilation causes unpredictable behavior when the shader is applied. For example, setting the source to an empty string (or some other, non-GLSL string) often results in nothing being drawn, but sometimes results in other strange output. This seems to be in violation of the OpenGL 2.1 specification, section 2.15.1, which states, "Changing the source code of a shader object with ShaderSource does not change its compile status or the compiled shader code."
Presumably, this is the result of the driver automatically recompiling the shader for the sake of optimization. In that case, it would be better to use a copy of/reference to the source used at the time of user-initiated compilation rather than whatever the source string happens to be at the time of recompilation.
Re: 290.x, 295.x depend on shader source after compilation
Thanks for reporting this, snzzbk. Do you have a sample program that reproduces the problem?
|All times are GMT -5. The time now is 10:41 AM.|
Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2015, Jelsoft Enterprises Ltd.
Copyright ©1998 - 2014, nV News.