From 5b0640bbbf67b7e2828f3e6da22702db517e0a39 Mon Sep 17 00:00:00 2001 From: Andrzej Kapolka Date: Mon, 20 May 2013 16:52:40 -0700 Subject: [PATCH] Whoops--fixed a matrix stack issue that was breaking Oculus rendering. --- interface/src/Environment.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/interface/src/Environment.cpp b/interface/src/Environment.cpp index fb7c8c7271..81d983d635 100644 --- a/interface/src/Environment.cpp +++ b/interface/src/Environment.cpp @@ -21,7 +21,6 @@ void Environment::init() { } void Environment::renderAtmosphere(Camera& camera) { - glMatrixMode(GL_MODELVIEW); glPushMatrix(); glTranslatef(getAtmosphereCenter().x, getAtmosphereCenter().y, getAtmosphereCenter().z); @@ -72,10 +71,7 @@ void Environment::renderAtmosphere(Camera& camera) { program->release(); - glPopMatrix(); - - glMatrixMode(GL_MODELVIEW); - glPopMatrix(); + glPopMatrix(); } ProgramObject* Environment::createSkyProgram(const char* from, int* locations) {