mirror of
https://github.com/FWGS/xash3d-fwgs
synced 2024-11-26 20:00:53 +01:00
ref_gl: gl_rsurf: fixed invalid lightmap texture coordinates in some cases
This commit is contained in:
parent
24ea8fba4b
commit
9047fe2e74
@ -700,7 +700,7 @@ static void LM_UploadBlock( qboolean dynamic )
|
||||
r_lightmap.size = r_lightmap.width * r_lightmap.height * 4;
|
||||
r_lightmap.flags = IMAGE_HAS_COLOR;
|
||||
r_lightmap.buffer = gl_lms.lightmap_buffer;
|
||||
tr.lightmapTextures[i] = GL_LoadTextureInternal( lmName, &r_lightmap, TF_FONT|TF_ATLAS_PAGE );
|
||||
tr.lightmapTextures[i] = GL_LoadTextureInternal( lmName, &r_lightmap, TF_NOMIPMAP|TF_ATLAS_PAGE );
|
||||
|
||||
if( ++gl_lms.current_lightmap_texture == MAX_LIGHTMAPS )
|
||||
gEngfuncs.Host_Error( "AllocBlock: full\n" );
|
||||
|
Loading…
Reference in New Issue
Block a user