Skip to content

Commit

Permalink
Fixed|Model Renderer: Crash when rendering a Thing model
Browse files Browse the repository at this point in the history
Auxiliary data required.
  • Loading branch information
skyjake committed Aug 18, 2015
1 parent 0e1064d commit 47fd459
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions doomsday/apps/client/src/render/modelrenderer.cpp
Expand Up @@ -430,6 +430,8 @@ DENG2_PIMPL(ModelRenderer)
template <typename Params>
void draw(Params const &p)
{
DENG2_ASSERT(p.auxData != nullptr);

p.animator->bindUniforms(program); /// @todo Constant buffers?
p.model->draw(p.animator,
!p.auxData->passes.isEmpty()? &p.auxData->passes :
Expand Down
1 change: 1 addition & 0 deletions doomsday/apps/client/src/render/r_things.cpp
Expand Up @@ -459,6 +459,7 @@ void R_ProjectSprite(mobj_t &mob)
vis->data.model2.object = &mob;
vis->data.model2.animator = animator;
vis->data.model2.model = &animator->model();
vis->data.model2.auxData = &mobjData->auxiliaryModelData();
}
else
{
Expand Down

0 comments on commit 47fd459

Please sign in to comment.