OpenGL: fix BRIGHTMAP sneaking into textures where it doesn't belong and creating artifacts

This commit is contained in:
James R 2024-01-17 18:21:38 -08:00
parent 9382031337
commit 014cbdb3bb

View file

@ -1962,6 +1962,7 @@ EXPORT void HWRAPI(UpdateTexture) (GLMipmap_t *pTexInfo)
if (!(pTexInfo->flags & TF_BRIGHTMAP))
{
tex_downloaded = 0; // force update
SetNoTexture(GL_TEXTURE1); // will be assigned later, if needed
}
@ -2076,6 +2077,7 @@ EXPORT void HWRAPI(SetTexture) (GLMipmap_t *pTexInfo)
{
if (!(pTexInfo->flags & TF_BRIGHTMAP))
{
tex_downloaded = 0; // force update
SetNoTexture(GL_TEXTURE1); // will be assigned later, if needed
}