Bug 29718

Summary: glsl2: failing to compile a conditional assignment to gl_Position
Product: Mesa Reporter: Marek Olšák <maraeo>
Component: Mesa coreAssignee: mesa-dev
Status: RESOLVED NOTOURBUG QA Contact:
Severity: normal    
Priority: medium    
Version: git   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: failing shader

Description Marek Olšák 2010-08-20 16:45:56 UTC
Created attachment 38031 [details]
failing shader

The GLSL2 compiler fails to compile the attached shader and returns this error:

0:6(13): error: syntax error, unexpected $end

The attached shader is actually a shader_runner test.
Comment 1 Ian Romanick 2010-08-23 17:56:23 UTC
There's a funny (read: non-ASCII) character in that shader between the ">" and the "0" in the if-statement's condition.  Replacing that with a space made the problem go away.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.