mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 18:44:00 +02:00
Whoops--fixed a matrix stack issue that was breaking Oculus rendering.
This commit is contained in:
parent
24f52ff2fc
commit
5b0640bbbf
1 changed files with 1 additions and 5 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue