xuxiandi / angleproject

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

for-loop in fragment shader fails to link (error X3000) #250

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Use a for-loop in a WebGL fragment shader (see line 13 in attached fragment 
shader)
2. Compile & link the shader

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

The shader should compile and link properly. Instead, the linking step produces 
the following error message (Chrome & Firefox under Windows):

"Shader@0x16AAD000(49,145): error X3000: syntax error: unexpected token ‘}‘"

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

Windows XP, NVIDIA 9600 card with latest drivers.
Chrome 14 and Firefox 7.

Please provide any additional information below.

Test case and various user feedback regarding the issue can be found here:

http://www.bitsnbites.eu/?p=112
http://www.pouet.net/prod.php?which=58053

Original issue reported on code.google.com by 3m1...@gmail.com on 21 Nov 2011 at 10:51

Attachments:

GoogleCodeExporter commented 9 years ago
As far as I can tell this is working fine in Chrome 17 (win 7, 
NV8800GS/AMD5770).   The demo runs fine (very cool demo btw!) and the attached 
shader compiles just fine in the shadertoy website.

Please re-open if this is still failing for you.

Original comment by dan...@transgaming.com on 27 Feb 2012 at 10:26

GoogleCodeExporter commented 9 years ago
(It also seems to work in Firefox 10.)

Original comment by dan...@transgaming.com on 28 Feb 2012 at 1:38