List of usage examples for android.opengl GLES20 GL_VALIDATE_STATUS
int GL_VALIDATE_STATUS
To view the source code for android.opengl GLES20 GL_VALIDATE_STATUS.
Click Source Link
From source file:Main.java
private static int validateProgram(int program) { int[] status = new int[1]; GLES20.glValidateProgram(program);//w ww . j a v a2s.com GLES20.glGetProgramiv(program, GLES20.GL_VALIDATE_STATUS, status, 0); if (status[0] != GLES20.GL_TRUE) { Log.e(TAG, "Error validating program: " + GLES20.glGetProgramInfoLog(program)); return 0; } return 1; }