Skip to content

Commit

Permalink
Fix incorrect D3D11 assert occasionally triggering in StagingTexture
Browse files Browse the repository at this point in the history
The texture had to be a compressed cubemap or texture array to trigger,
and the conditions were order dependant (since "if( mWidth < blockWidth
|| mHeight < blockHeight )" conditional needs to be met)
  • Loading branch information
darksylinc committed Jun 28, 2020
1 parent 537a2ff commit 41760a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion RenderSystems/Direct3D11/src/OgreD3D11StagingTexture.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ namespace Ogre
// There can and should only be one record.
if( mWidth < blockWidth || mHeight < blockHeight )
{
OGRE_ASSERT_LOW( mFreeBoxes.size() == 1u );
OGRE_ASSERT_LOW( mFreeBoxes[slice].size() == 1u );
canShrink = false;
}
}
Expand Down

0 comments on commit 41760a6

Please sign in to comment.