Commits

Roi Atalla committed cb1b7fc

Some typos in ShaderProgram :P

  • Participants
  • Parent commits db2d518

Comments (0)

Files changed (1)

src/main/java/com/ra4king/opengl/util/ShaderProgram.java

 	
 	public ShaderProgram(String vertexShader, String fragmentShader, Map<Integer,String> attributes) {
 		int vs = compileShader(vertexShader, GL_VERTEX_SHADER);
-		
 		int fs = compileShader(fragmentShader, GL_FRAGMENT_SHADER);
 		
 		program = glCreateProgram();
 		if(glGetProgram(program, GL_LINK_STATUS) == GL_FALSE)
 			throw new RuntimeException("Failure in linking program. Error log:\n" + infoLog);
 		else {
-			System.out.print("Linking program successfull.");
+			System.out.print("Linking program successful.");
 			if(infoLog != null && !(infoLog = infoLog.trim()).isEmpty())
 				System.out.println(" Log:\n" + infoLog);
 			else
 		if(glGetShader(shader, GL_COMPILE_STATUS) == GL_FALSE)
 			throw new RuntimeException("Failure in compiling " + getName(type) + " shader. Error log:\n" + infoLog);
 		else {
-			System.out.print("Compiling " + getName(type) + " shader successfull.");
+			System.out.print("Compiling " + getName(type) + " shader successful.");
 			if(infoLog != null && !(infoLog = infoLog.trim()).isEmpty())
 				System.out.println(" Log:\n" + infoLog);
 			else