I am loading them in my update method that is after Display.create().
Code:
public void start() {
try{
Display.setDisplayMode(new DisplayMode(this.windowWidth, this.windowHeight));
Display.setFullscreen(this.getFullscreen());
Display.setVSyncEnabled(this.getVsync());
Display.setTitle(this.getTitle() + " " + this.getTitleExtension() + " (" + this.getVersion() + ")");
Display.create();
}catch(LWJGLException e){
e.printStackTrace();
System.exit(1);
}
if(this.activeState.getDimensions() == 2){
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
glOrtho(0, this.windowWidth, this.windowHeight, 0, 1, -1);
glMatrixMode(GL_MODELVIEW);
}else if(this.activeState.getDimensions() == 3){
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
gluPerspective(this.FOV, this.windowWidth / this.windowHeight, 0.001f, 100);
glMatrixMode(GL_MODELVIEW);
}else{
System.out.println("Invalid dimensions number in this state. Cannot set-up OpenGL. Shutting down.");
System.exit(1);
}
lastFrame = Time.getTime();
setUpDebug();
while(!Display.isCloseRequested()){
update(this.calculateDelta(), this);
render();
Display.update();
}
}