make sure lightmap textures have the right image format shown.

This commit is contained in:
Shpoike 2021-04-27 19:50:08 +01:00
parent e09f707067
commit f918b3c9c8
1 changed files with 1 additions and 0 deletions

View File

@ -5597,6 +5597,7 @@ void GLBE_UpdateLightmaps(void)
else
{
GL_MTBind(0, GL_TEXTURE_2D, lm->lightmap_texture);
lm->lightmap_texture->format = lm->fmt;
if (lm->pbo_handle)
{
qglBindBufferARB(GL_PIXEL_UNPACK_BUFFER_ARB, lm->pbo_handle);