Example usage for com.badlogic.gdx.graphics GL20 GL_NO_ERROR

List of usage examples for com.badlogic.gdx.graphics GL20 GL_NO_ERROR

Introduction

In this page you can find the example usage for com.badlogic.gdx.graphics GL20 GL_NO_ERROR.

Prototype

int GL_NO_ERROR

To view the source code for com.badlogic.gdx.graphics GL20 GL_NO_ERROR.

Click Source Link

Usage

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);
    }
}