mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-20 17:31:08 +00:00
Fix issue with gl_lightmap_components 4 and lightmap updates.
This commit is contained in:
parent
79eb948127
commit
2887dd3950
1 changed files with 3 additions and 3 deletions
|
@ -281,7 +281,7 @@ R_BuildLightMap (msurface_t *surf, byte * dest, int stride)
|
|||
dest[1] = bound(0, bl[1] >> shift, 255);
|
||||
dest[2] = bound(0, bl[2] >> shift, 255);
|
||||
dest[3] = 255;
|
||||
dest += 4;
|
||||
dest += lightmap_bytes;
|
||||
bl += 3;
|
||||
}
|
||||
}
|
||||
|
@ -292,7 +292,7 @@ R_BuildLightMap (msurface_t *surf, byte * dest, int stride)
|
|||
dest[0] = bound(0, bl[0] >> shift, 255);
|
||||
dest[1] = bound(0, bl[1] >> shift, 255);
|
||||
dest[2] = bound(0, bl[2] >> shift, 255);
|
||||
dest += 3;
|
||||
dest += lightmap_bytes;
|
||||
bl += 3;
|
||||
}
|
||||
}
|
||||
|
@ -1168,7 +1168,7 @@ GL_BuildLightmaps (model_t **models, int num_models)
|
|||
default:
|
||||
gl_internalformat = 3;
|
||||
gl_lightmap_format = GL_RGBA;
|
||||
lightmap_bytes = 3;
|
||||
lightmap_bytes = 4;
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue