Fix for black static lightmaps. (oops, forgot that one too)

This commit is contained in:
Forest Hale 2000-07-02 06:40:46 +00:00
parent cd0fbe1b52
commit fdcf20b4a3

View file

@ -1440,8 +1440,7 @@ void GL_BuildLightmaps (void)
glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
glTexImage2D (GL_TEXTURE_2D, 0, lightmap_bytes, BLOCK_WIDTH,
BLOCK_HEIGHT, 0, gl_lightmap_format,
GL_UNSIGNED_BYTE, lightmaps +
i*BLOCK_WIDTH*BLOCK_HEIGHT*lightmap_bytes);
GL_UNSIGNED_BYTE, lightmaps[i]);
}
if (!gl_texsort->value)