Matt Turner <matts...@gmail.com> writes: > The check was in the wrong place, such that if a shader incorrectly put > a preprocessor token before the #version declaration, the version would > be resolved twice, leading to a segmentation fault when attempting to > redefine the __VERSION__ macro.
This fix looks good. And the renamed does help, so thanks! While you're at it, you might fix the typo in the comment above that function: /* GLSL version is no version is explicitly specified. */ #define IMPLICIT_GLSL_VERSION 110 (The first "is" should be "if"). And the fact that this segmentation-fault has been there with a late #version suggestions that we haven't had any piglit test for this case. Presumably we should emit a warning that the late #version is being ignored? Regardless, Reviewed-by: Carl Worth <cwo...@cworth.org> -Carl -- carl.d.wo...@intel.com
pgpuUfXf1fD1_.pgp
Description: PGP signature
_______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev