Skip to content

Commit

Permalink
Traktor: Logging destroyed texture name when verifying bound program.
Browse files Browse the repository at this point in the history
  • Loading branch information
apistol78 committed Apr 9, 2024
1 parent e657ed4 commit 77d582e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/Render/Vrfy/ProgramVrfy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ void ProgramVrfy::verify()

if (TextureVrfy* textureVrfy = dynamic_type_cast< TextureVrfy* >(i->second->resolve()))
{
T_CAPTURE_ASSERT(textureVrfy->getTexture(), L"Trying to draw with destroyed texture (" << m_tag << L").");
T_CAPTURE_ASSERT(textureVrfy->getTexture(), L"Trying to draw with destroyed texture " << getParameterName(i->first) << L" (" << m_tag << L").");
m_program->setTextureParameter(i->first, textureVrfy->getTexture());
}
}
Expand All @@ -283,7 +283,7 @@ void ProgramVrfy::verify()

if (TextureVrfy* textureVrfy = dynamic_type_cast< TextureVrfy* >(it.first->resolve()))
{
T_CAPTURE_ASSERT(textureVrfy->getTexture(), L"Trying to draw with destroyed texture (" << m_tag << L").");
T_CAPTURE_ASSERT(textureVrfy->getTexture(), L"Trying to draw with destroyed image " << getParameterName(i->first) << L" (" << m_tag << L").");
m_program->setImageViewParameter(i->first, textureVrfy->getTexture(), it.second);
}
}
Expand Down

0 comments on commit 77d582e

Please sign in to comment.