glsl: remove extra #version directives from concatenated shader sources
authorBrian Paul <brianp@vmware.com>
Mon, 14 Sep 2009 23:24:25 +0000 (17:24 -0600)
committerBrian Paul <brianp@vmware.com>
Mon, 14 Sep 2009 23:24:25 +0000 (17:24 -0600)
commitb8b774c775b672c89f1f4007c7b9575052d85739
treecf2cdeaec5488e236c4a897be60ee451ae1b37d9
parent1402ea8f3984e5d8659ff2d923d438ecbf79042e
glsl: remove extra #version directives from concatenated shader sources

When we concatenate shaders to do our form of poor-man linking, if there's
multiple #version directives, preprocessing fails.  This change disables
the extra #version directives by changing the first two chars to //.

This should help with some Wine issues such as bug 23946.
src/mesa/shader/slang/slang_link.c