문제

I'm trying to learn OpenGL ES on Android, but one thing is making this rather frustrating and difficult. I can't get any usable error messages from the GLSL compiler. And learning GLSL when you don't get any useful feedback except "it compiles" and "it does not compile" is rather difficult.

I found that glGetProgramInfoLog is supposed to contain the errors from the compiler, but the only thing I can get out of this is something like

Link failed because of invalid fragment shader.

Am I using the correct command to get the compiler errors, or is there a different one I should use? Is it even possible to get more meaningful error messages from the GLSL compiler?

I'm using OpenGL ES 3.0 on Android 4.3 and a Nexus 10 as target.

도움이 되었습니까?

해결책

glGetShaderInfoLog gives you shader-level debug output.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top