Clear openGL error codes before entry into the routine, since it was giving fasle positives.

master
Buginator 2011-03-24 19:58:18 -04:00
parent 1f5d94a564
commit 8ffb1379f3
1 changed files with 1 additions and 1 deletions

View File

@ -1088,8 +1088,8 @@ void drawTerrain(void)
const GLfloat paramsY[4] = {0, 0, -1.0f/world_coord(mapHeight)*((float)mapHeight/lightmapHeight), 0};
///////////////////////////////////
glError(); // clear error codes
// set up the lightmap texture
glActiveTexture(GL_TEXTURE1);
// bind the texture
glBindTexture(GL_TEXTURE_2D, lightmap_tex_num);