Hi, Attached patch fixes GLSL2 crash on a shader like below. whole_variable_referenced() can return NULL if the array in question is not a top-level variable.
struct str {
float params[3];
};
void main() {
str s;
for (int i = 0; i < 3; ++i)
s.params[i] = 1.0;
gl_FragColor = vec4(0.0);
}
--
Aras Pranckevičius
work: http://unity3d.com
home: http://aras-p.info
glsl-fix-crash-with-variable-indexing-into-array-in-.patch
Description: Binary data
_______________________________________________ mesa-dev mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-dev
