ebiten/internal/shader/testdata/issue1701.expected.fs
Hajime Hoshi 853c1f2b92 internal/shaderir/glsl: Bug fix: Remove uncalled functions
Some built-in functions like dFdx is not available in a vertex shader,
then a function that calls such built-in function should not be in
a vertex shader.

Closes #1701
2021-07-09 20:22:40 +09:00

16 lines
139 B
GLSL

void F2(void);
void F3(void);
void F2(void) {
}
void F3(void) {
F2();
}
void main(void) {
F3();
gl_FragColor = vec4(0.0);
return;
}