oizma / angleproject

Automatically exported from code.google.com/p/angleproject
Other
0 stars 0 forks source link

Angle shader compiler halts with certain text #67

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. ShCompile against the below text (I tested it as Fragment Shader):

#ifdef GL_ES,precision mediump float;,#endif,,void main(),{,    gl_FragColor = 
vec4(1.0, 0.0, 0.0, 1.0);,}

2. Angle never returns from this.

What is the expected output? What do you see instead?

Expected: generate an compile-failure error.  Instead, it enters an infinite 
loop.

What version of the product are you using? On what operating system?

Please provide any additional information below.

Original issue reported on code.google.com by z...@google.com on 22 Oct 2010 at 11:02

GoogleCodeExporter commented 9 years ago
The validator parses the commas properly, but keeps looking for '\n' at the end 
of #ifdef preprocessor token.

Original comment by alokp@chromium.org on 25 Oct 2010 at 7:42