mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-15 01:01:33 +00:00
Fix wrong color on player models' first frame by updating variable after loading blend texture
This commit is contained in:
parent
c589fe85e4
commit
746c84e0b5
1 changed files with 5 additions and 0 deletions
|
@ -1405,6 +1405,11 @@ boolean HWR_DrawModel(gl_vissprite_t *spr)
|
|||
|| ((!hwrBlendPatch->mipmap->format || !hwrBlendPatch->mipmap->downloaded) && !md2->noblendfile)))
|
||||
md2_loadBlendTexture(md2);
|
||||
|
||||
// Load it again, because it isn't being loaded into blendgpatch after md2_loadblendtexture...
|
||||
blendgpatch = md2->blendgrpatch;
|
||||
if (blendgpatch)
|
||||
hwrBlendPatch = ((GLPatch_t *)blendgpatch->hardware);
|
||||
|
||||
if (md2->error)
|
||||
return false; // we already failed loading this before :(
|
||||
if (!md2->model)
|
||||
|
|
Loading…
Reference in a new issue