diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2019-04-13 16:49:29 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2019-04-13 16:49:29 +0000 |
| commit | de0549ae632c6ad7919ccbdb3fc9a1c7dcb983ee (patch) | |
| tree | af1fe20a9b4ea186416c96382e53e42f431c0f50 /Graphics/GraphicsEngineD3D12 | |
| parent | Merge pull request #84 from tombish/master (diff) | |
| download | DiligentCore-de0549ae632c6ad7919ccbdb3fc9a1c7dcb983ee.tar.gz DiligentCore-de0549ae632c6ad7919ccbdb3fc9a1c7dcb983ee.zip | |
Improved names of default texture views
Diffstat (limited to 'Graphics/GraphicsEngineD3D12')
| -rw-r--r-- | Graphics/GraphicsEngineD3D12/src/GenerateMips.cpp | 1 |
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); } } |
