mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 22:51:20 +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) {
|
void Environment::renderAtmosphere(Camera& camera) {
|
||||||
glMatrixMode(GL_MODELVIEW);
|
|
||||||
glPushMatrix();
|
glPushMatrix();
|
||||||
glTranslatef(getAtmosphereCenter().x, getAtmosphereCenter().y, getAtmosphereCenter().z);
|
glTranslatef(getAtmosphereCenter().x, getAtmosphereCenter().y, getAtmosphereCenter().z);
|
||||||
|
|
||||||
|
@ -73,9 +72,6 @@ void Environment::renderAtmosphere(Camera& camera) {
|
||||||
program->release();
|
program->release();
|
||||||
|
|
||||||
glPopMatrix();
|
glPopMatrix();
|
||||||
|
|
||||||
glMatrixMode(GL_MODELVIEW);
|
|
||||||
glPopMatrix();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ProgramObject* Environment::createSkyProgram(const char* from, int* locations) {
|
ProgramObject* Environment::createSkyProgram(const char* from, int* locations) {
|
||||||
|
|
Loading…
Reference in a new issue