private static void compileLogCheck(int shader) {
		String infoLog = GL20.glGetShaderInfoLog(shader, GL20.glGetShader(shader, GL20.GL_INFO_LOG_LENGTH));

		if(GL20.glGetShader(shader, GL20.GL_COMPILE_STATUS) == GL11.GL_FALSE)
			throw new RuntimeException("Failure in compiling the shader.\nError log:\n"+infoLog);
		else {
			System.out.println("Compiling the shader was successful.");
			if(infoLog != null && !(infoLog = infoLog.trim()).isEmpty())
				System.out.println("Log:\n" + infoLog);
		}
	}