summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineD3D12
diff options
context:
space:
mode:
Diffstat (limited to 'Graphics/GraphicsEngineD3D12')
-rw-r--r--Graphics/GraphicsEngineD3D12/src/GenerateMips.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Graphics/GraphicsEngineD3D12/src/GenerateMips.cpp b/Graphics/GraphicsEngineD3D12/src/GenerateMips.cpp
index e0dfe5e3..29fd102b 100644
--- a/Graphics/GraphicsEngineD3D12/src/GenerateMips.cpp
+++ b/Graphics/GraphicsEngineD3D12/src/GenerateMips.cpp
@@ -235,6 +235,7 @@ namespace Diligent
VERIFY(OriginalState != RESOURCE_STATE_UNDEFINED, "Original layout must not be undefined");
// Transition affected subresources back to original layout
std::swap(TextureBarrier.NewState, TextureBarrier.OldState);
+ VERIFY_EXPR(TextureBarrier.NewState == TextureState);
Ctx.TransitionResource(TextureBarrier);
}
}