pombreda / angleproject

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

Missing user-defined function arguments are not detected by the translator #936

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
The following shader is not detected as faulty by ANGLE:

precision highp float;

void fun(float a)
{}

void main()
{
    fun();
    gl_FragColor = vec4(0.0);
}

The shader that's generated by ANGLE from this code typically results in an 
error from the platform shader compiler.

Original issue reported on code.google.com by oetu...@nvidia.com on 5 Mar 2015 at 3:16

GoogleCodeExporter commented 9 years ago

Original comment by cwal...@chromium.org on 12 Mar 2015 at 5:51