- use FGameTexture in the model rendering code.
This commit is contained in:
parent
b9b6a354c7
commit
54f4267597
13 changed files with 28 additions and 27 deletions
|
|
@ -269,7 +269,7 @@ void FModelRenderer::RenderFrameModels(FLevelLocals *Level, const FSpriteModelFr
|
|||
if (smf->modelIDs[i] != -1)
|
||||
{
|
||||
FModel * mdl = Models[smf->modelIDs[i]];
|
||||
FTexture *tex = smf->skinIDs[i].isValid() ? TexMan.GetTexture(smf->skinIDs[i], true) : nullptr;
|
||||
auto tex = smf->skinIDs[i].isValid() ? TexMan.GetGameTexture(smf->skinIDs[i], true) : nullptr;
|
||||
mdl->BuildVertexBuffer(this);
|
||||
|
||||
mdl->PushSpriteMDLFrame(smf, i);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue