List of usage examples for org.lwjgl.opengl GL11 GL_NO_ERROR
int GL_NO_ERROR
To view the source code for org.lwjgl.opengl GL11 GL_NO_ERROR.
Click Source Link
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)); } }