mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 17:03:58 +02:00
Merge pull request #362 from ey6es/master
Fix for matrix stack bug that was breaking Oculus rendering (if nothing else).
This commit is contained in:
commit
fc238c0382
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