From 9dfcd9a468959f635bdf2865945537b75fb49c00 Mon Sep 17 00:00:00 2001 From: stephena Date: Wed, 17 Aug 2011 14:45:54 +0000 Subject: [PATCH] A little too much pruning in the last commit broke OpenGL rendering for Linux and Windows. git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@2269 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba --- src/common/FrameBufferGL.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/common/FrameBufferGL.cxx b/src/common/FrameBufferGL.cxx index a7b5d5390..37ebd115b 100644 --- a/src/common/FrameBufferGL.cxx +++ b/src/common/FrameBufferGL.cxx @@ -306,6 +306,7 @@ bool FrameBufferGL::setVidMode(VideoMode& mode) // Initialize GL display p_glViewport(0, 0, mode.screen_w, mode.screen_h); p_glMatrixMode(GL_PROJECTION); + p_glLoadIdentity(); p_glOrtho(0.0, mode.screen_w, mode.screen_h, 0.0, -1.0, 1.0); p_glMatrixMode(GL_MODELVIEW); p_glLoadIdentity();