Imagination PowerVR SDK Blog

gl_FragDepth not available on GLES 3.0 Windows Emulator



As far as the specification say, gl_FragDepth should be supported on 3.0:

But I got this error:

scode lang="{language}" The shader failed OpenGL ES shader validation. Call glGetShaderInfoLog to retrieve the shader info log.
Failed to compile pixel shader: Compile failed.
ERROR: 0:153: ‘gl_FragDepth’ : undeclared identifier
ERROR: 1 compilation errors. No code generated.[/scode]

Could be a plan to support it or am I doing something wrong?



Hi Daniel,

gl_FragDepth is supported in GLSL 300 es and up, could you post (or attach) the fragment shader that is failing.