My GLSL (OpenGL ES 2.0, "#version 100") shaders fail to compile on a Vivante GC800 GPU. The shaders compile fine on lots of other GPUs.
The error I get is:
(2:0) : error : Expect positive integer-line-number after #line.
I use
#line 0
to reset the line number after including a bunch of preamble code (like #version
and some precision specifiers) before the "real" shader. Anyone know if this is a case of the Vivante shader compiler being broken, or of everyone else's shader compiler being too lenient?
My workaround is to only include this directive when debugging my shaders locally.