From abd3f75d6c9ae3f54935d597f646a2293a21571d Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Sun, 23 Mar 2008 15:51:10 +0000 Subject: [PATCH] Removed 2D OpenGL initialization code from Display. It messes with the implicit, but well-defined, opengl default state and doesn't fit well with multiple context types (gl3 and d3d) --- src/java/org/lwjgl/opengl/Display.java | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/java/org/lwjgl/opengl/Display.java b/src/java/org/lwjgl/opengl/Display.java index 6b92eeb1..2d348260 100644 --- a/src/java/org/lwjgl/opengl/Display.java +++ b/src/java/org/lwjgl/opengl/Display.java @@ -782,14 +782,6 @@ public final class Display { } private static void initContext() { - // Put the window into orthographic projection mode with 1:1 pixel ratio. - // We haven't used GLU here to do this to avoid an unnecessary dependency. - GL11.glMatrixMode(GL11.GL_PROJECTION); - GL11.glLoadIdentity(); - GL11.glOrtho(0.0, current_mode.getWidth(), 0.0, current_mode.getHeight(), -1.0, 1.0); - GL11.glMatrixMode(GL11.GL_MODELVIEW); - GL11.glLoadIdentity(); - GL11.glViewport(0, 0, current_mode.getWidth(), current_mode.getHeight()); // Clear window to avoid the desktop "showing through" GL11.glClear(GL11.GL_COLOR_BUFFER_BIT); update();