mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-25 05:41:42 +00:00
MD2 Texture load fix
Fixes MD2's using sprites on the first frame when they're loaded.
This commit is contained in:
parent
652f3395a9
commit
9f0aacb059
1 changed files with 2 additions and 0 deletions
|
@ -1179,6 +1179,8 @@ void HWR_DrawMD2(gr_vissprite_t *spr)
|
|||
if (!gpatch || !gpatch->mipmap.grInfo.format || !gpatch->mipmap.downloaded)
|
||||
md2_loadTexture(md2);
|
||||
|
||||
gpatch = md2->grpatch; // Load it again, because it isn't being loaded into gpatch after md2_loadtexture...
|
||||
|
||||
if (gpatch && gpatch->mipmap.grInfo.format) // else if meant that if a texture couldn't be loaded, it would just end up using something else's texture
|
||||
{
|
||||
// This is safe, since we know the texture has been downloaded
|
||||
|
|
Loading…
Reference in a new issue