Added init code to space invaders example

This commit is contained in:
Elias Naur 2009-04-26 19:58:08 +00:00
parent 68ec5edea1
commit 3f9dfefe81
1 changed files with 3 additions and 0 deletions

View File

@ -228,6 +228,9 @@ public class Game {
GL11.glLoadIdentity();
GL11.glOrtho(0, width, height, 0, -1, 1);
GL11.glMatrixMode(GL11.GL_MODELVIEW);
GL11.glLoadIdentity();
GL11.glViewport(0, 0, width, height);
textureLoader = new TextureLoader();