Fix OpenGL temporary address error
This commit is contained in:
parent
bab38f82e1
commit
877230d486
@ -195,13 +195,13 @@ void SkyRender()
|
||||
//glEnable(GL_FOG);
|
||||
//just draw a covering plane
|
||||
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);
|
||||
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);
|
||||
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);
|
||||
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);
|
||||
glEnd();
|
||||
glPopMatrix();
|
||||
|
Loading…
Reference in New Issue
Block a user