From 41760a6b77a811a1c647b73ba8d36072007c94f4 Mon Sep 17 00:00:00 2001 From: "Matias N. Goldberg" Date: Sun, 28 Jun 2020 14:46:40 -0300 Subject: [PATCH] Fix incorrect D3D11 assert occasionally triggering in StagingTexture 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) --- RenderSystems/Direct3D11/src/OgreD3D11StagingTexture.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RenderSystems/Direct3D11/src/OgreD3D11StagingTexture.cpp b/RenderSystems/Direct3D11/src/OgreD3D11StagingTexture.cpp index 65b593f862f..60c34737abb 100644 --- a/RenderSystems/Direct3D11/src/OgreD3D11StagingTexture.cpp +++ b/RenderSystems/Direct3D11/src/OgreD3D11StagingTexture.cpp @@ -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; } }