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

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

Introduction

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

Prototype

int GL_OUT_OF_MEMORY

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

Click Source Link

Usage

From source file:de.fatox.meta.graphics.buffer.MultisampleFBO.java

License:Apache License

private void checkError(int error) {
    if (error == GL20.GL_INVALID_ENUM) {
        System.err.println("Invalid enum");
    } else if (error == GL20.GL_INVALID_VALUE) {
        System.err.println("Invalid val");
    } else if (error == GL20.GL_INVALID_OPERATION) {
        System.err.println("Invalid op");
    } else if (error == GL20.GL_INVALID_FRAMEBUFFER_OPERATION) {
        System.err.println("Invalid fbo op");
    } else if (error == GL20.GL_OUT_OF_MEMORY) {
        System.err.println("Out of memory");
    }/*from   w w  w.j av a 2 s.com*/
}