Example usage for org.lwjgl.opengl GL11 GL_NO_ERROR

List of usage examples for org.lwjgl.opengl GL11 GL_NO_ERROR

Introduction

In this page you can find the example usage for org.lwjgl.opengl GL11 GL_NO_ERROR.

Prototype

int GL_NO_ERROR

To view the source code for org.lwjgl.opengl GL11 GL_NO_ERROR.

Click Source Link

Document

ErrorCode

Usage

From source file:uk.co.ifs_studios.engine.shader.ShaderProgram.java

License:Open Source License

/**
 * Link and validate shader program./*from ww w .j a v  a  2 s.c o m*/
 */
public void link() {
    GL20.glLinkProgram(this.id);
    GL20.glValidateProgram(this.id);

    int error = GL11.glGetError();
    if (error != GL11.GL_NO_ERROR) {
        EngineLogger.error(new ShaderException("Couldn't link and validate shader program.", null));
    }
}