mirror of
https://git.code.sf.net/p/quake/newtree
synced 2025-05-02 02:40:58 +00:00
Fix for black static lightmaps. (oops, forgot that one too)
This commit is contained in:
parent
cd0fbe1b52
commit
fdcf20b4a3
1 changed files with 1 additions and 2 deletions
|
@ -1440,8 +1440,7 @@ void GL_BuildLightmaps (void)
|
||||||
glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
|
glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
|
||||||
glTexImage2D (GL_TEXTURE_2D, 0, lightmap_bytes, BLOCK_WIDTH,
|
glTexImage2D (GL_TEXTURE_2D, 0, lightmap_bytes, BLOCK_WIDTH,
|
||||||
BLOCK_HEIGHT, 0, gl_lightmap_format,
|
BLOCK_HEIGHT, 0, gl_lightmap_format,
|
||||||
GL_UNSIGNED_BYTE, lightmaps +
|
GL_UNSIGNED_BYTE, lightmaps[i]);
|
||||||
i*BLOCK_WIDTH*BLOCK_HEIGHT*lightmap_bytes);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!gl_texsort->value)
|
if (!gl_texsort->value)
|
||||||
|
|
Loading…
Reference in a new issue