List of usage examples for com.badlogic.gdx.graphics GL20 GL_NO_ERROR
int GL_NO_ERROR
To view the source code for com.badlogic.gdx.graphics GL20 GL_NO_ERROR.
Click Source Link
From source file:com.toet.TinyVoxel.Debug.LogHandler.java
public static void exitOnGLError() { if (!Config.get().ENABLE_ERROR_HANDLER) return;// ww w .j a v a 2 s .com int errorValue = Gdx.graphics.getGL20().glGetError(); if (errorValue != GL20.GL_NO_ERROR) { //if (Display.isCreated()) Display.destroy(); throwEx("OpenGL" + errorValue); } }