Java Code Examples for com.badlogic.gdx.graphics.GL20#GL_TRUE
The following examples show how to use
com.badlogic.gdx.graphics.GL20#GL_TRUE .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: Main.java From graphicsfuzz with Apache License 2.0 | 6 votes |
private boolean isProgramValid() { Gdx.gl.glValidateProgram(program.getProgramHandle()); int glErr = Gdx.gl.glGetError(); if (glErr != GL20.GL_NO_ERROR) { Gdx.app.log("Main", "glValidateProgram RAISED ERROR"); } ByteBuffer bb = ByteBuffer.allocateDirect(16); bb.order(ByteOrder.nativeOrder()); IntBuffer res = bb.asIntBuffer(); res.position(0); res.put(0); Gdx.gl.glGetProgramiv(program.getProgramHandle(), GL20.GL_VALIDATE_STATUS, res); glErr = Gdx.gl.glGetError(); if (glErr != GL20.GL_NO_ERROR) { Gdx.app.log("Main", "glGetProgramiv RAISED ERROR"); } res.position(0); int validInt = res.get(); return (validInt == GL20.GL_TRUE); }