Commit 8d30d81e authored by Rinnegatamante's avatar Rinnegatamante
Browse files

Fix for broken skybox rendering.

parent 529b6097
......@@ -366,7 +366,9 @@ static void DrawSkySide( struct image_s *image, const int mins[2], const int max
int s, t;
GL_Bind( image );
#ifdef URBANTERROR
glDisableClientState(GL_COLOR_ARRAY);
#endif
glEnableClientState(GL_TEXTURE_COORD_ARRAY);
for ( t = mins[1]+HALF_SKY_SUBDIVISIONS; t < maxs[1]+HALF_SKY_SUBDIVISIONS; t++ )
{
......@@ -390,6 +392,9 @@ static void DrawSkySide( struct image_s *image, const int mins[2], const int max
vglDrawObjects(GL_TRIANGLE_STRIP, numindices, GL_TRUE);
}
//glDisableClientState(GL_TEXTURE_COORD_ARRAY);
#ifdef URBANTERROR
glEnableClientState(GL_COLOR_ARRAY);
#endif
}
static void DrawSkyBox( shader_t *shader )
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment