oizma / angleproject

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

Incorrect parenthesization of some expressions in GLSL backend #5

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
It appears that some expressions are being incorrectly parenthesized in the 
GLSL backend, which is leading to failures in the OpenGL ES 2.0 conformance 
tests.

One such expression being incorrectly translated is:

  if( (setval+=11) == 40)

which is translated as

  if ((setval += 11 == 40))

It is unclear whether this is the reason for this conformance test failure, but 
it appears likely.

Original issue reported on code.google.com by kbr@chromium.org on 7 Jun 2010 at 11:23

GoogleCodeExporter commented 9 years ago

Original comment by alokp@chromium.org on 11 Jun 2010 at 6:57

GoogleCodeExporter commented 9 years ago
Fixed in r336
http://code.google.com/p/angleproject/source/detail?r=336

Original comment by alokp@chromium.org on 16 Jun 2010 at 6:46