Compatibility fixes for Shaders 1.5
This commit is contained in:
parent
eda25cf2c9
commit
ae3320e067
4 changed files with 114 additions and 64 deletions
|
@ -2,11 +2,8 @@ package globalgamejam.render;
|
|||
|
||||
import static org.lwjgl.opengl.GL11.*;
|
||||
import static org.lwjgl.opengl.GL30.*;
|
||||
import static org.lwjgl.opengl.GL32.*;
|
||||
|
||||
import globalgamejam.Main;
|
||||
import globalgamejam.math.Matrix4f;
|
||||
import globalgamejam.math.Vector2f;
|
||||
import org.lwjgl.BufferUtils;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import org.lwjgl.opengl.GL13;
|
||||
|
|
|
@ -38,14 +38,14 @@ public class Shaders {
|
|||
System.err.println(glGetShaderInfoLog(vert, 2048));
|
||||
System.exit(1);
|
||||
}else{
|
||||
System.out.println("Vertex compiled !");
|
||||
System.out.println(vertexFile + " compiled !");
|
||||
}
|
||||
glCompileShader(frag);
|
||||
if (glGetShaderi(frag, GL_COMPILE_STATUS) == GL_FALSE) {
|
||||
System.err.println(glGetShaderInfoLog(frag, 2048));
|
||||
System.exit(1);
|
||||
}else{
|
||||
System.out.println("Fragment compiled !");
|
||||
System.out.println(fragmentFile + " compiled !");
|
||||
}
|
||||
glAttachShader(program, vert);
|
||||
glAttachShader(program, frag);
|
||||
|
|
Reference in a new issue