Skip to content

Commit

Permalink
refill soundtable when model reloading...
Browse files Browse the repository at this point in the history
  • Loading branch information
hzqst committed Oct 12, 2024
1 parent fefe347 commit 2d8d7a3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Plugins/Renderer/gl_studio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,11 @@ studio_vbo_t* R_AllocateStudioVBO(model_t* mod, studiohdr_t* studiohdr)
auto VBOData = R_GetStudioVBOFromModel(mod);

if (VBOData)
{
studiohdr->soundtable = EngineGetModelIndex(mod);

return VBOData;
}

VBOData = new studio_vbo_t;

Expand Down

0 comments on commit 2d8d7a3

Please sign in to comment.