Fix OpenGL temporary address error

This commit is contained in:
maride 2016-04-04 23:19:01 +02:00
parent bab38f82e1
commit 877230d486

View File

@ -195,13 +195,13 @@ void SkyRender()
//glEnable(GL_FOG); //glEnable(GL_FOG);
//just draw a covering plane //just draw a covering plane
glBegin(GL_TRIANGLE_STRIP); glBegin(GL_TRIANGLE_STRIP);
glColor3fv(&(RandomFl(0,1)*gEnvironment->flashColor).x); glColor3f((RandomFl(0,1)*gEnvironment->flashColor).x, (RandomFl(0,1)*gEnvironment->flashColor).y, (RandomFl(0,1)*gEnvironment->flashColor).z);
glVertex3f(-1.0f, 1.0f,-1.00f); glVertex3f(-1.0f, 1.0f,-1.00f);
glColor3fv(&(RandomFl(0,1)*gEnvironment->flashColor).x); glColor3f((RandomFl(0,1)*gEnvironment->flashColor).x, (RandomFl(0,1)*gEnvironment->flashColor).y, (RandomFl(0,1)*gEnvironment->flashColor).z);
glVertex3f(-1.0f,-1.0f,-1.00f); glVertex3f(-1.0f,-1.0f,-1.00f);
glColor3fv(&(RandomFl(0,1)*gEnvironment->flashColor).x); glColor3f((RandomFl(0,1)*gEnvironment->flashColor).x, (RandomFl(0,1)*gEnvironment->flashColor).y, (RandomFl(0,1)*gEnvironment->flashColor).z);
glVertex3f( 1.0f, 1.0f,-1.00f); glVertex3f( 1.0f, 1.0f,-1.00f);
glColor3fv(&(RandomFl(0,1)*gEnvironment->flashColor).x); glColor3f((RandomFl(0,1)*gEnvironment->flashColor).x, (RandomFl(0,1)*gEnvironment->flashColor).y, (RandomFl(0,1)*gEnvironment->flashColor).z);
glVertex3f( 1.0f,-1.0f,-1.00f); glVertex3f( 1.0f,-1.0f,-1.00f);
glEnd(); glEnd();
glPopMatrix(); glPopMatrix();