summaryrefslogtreecommitdiffstats
path: root/Tests/TestApp/src/TestBlendState.cpp
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2018-09-15 22:11:07 +0000
committerEgor Yusov <egor.yusov@gmail.com>2018-09-15 22:11:07 +0000
commiteaffcce87c373d6c701f1463859659235023d58c (patch)
treeabc4c995e64dd177d130d1a7d2c0f44562ceef2f /Tests/TestApp/src/TestBlendState.cpp
parentUpdated samples submodule (minor readme updates) (diff)
downloadDiligentEngine-eaffcce87c373d6c701f1463859659235023d58c.tar.gz
DiligentEngine-eaffcce87c373d6c701f1463859659235023d58c.zip
Fixed compiler warnings
Diffstat (limited to 'Tests/TestApp/src/TestBlendState.cpp')
-rw-r--r--Tests/TestApp/src/TestBlendState.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/Tests/TestApp/src/TestBlendState.cpp b/Tests/TestApp/src/TestBlendState.cpp
index f54df7e..d8ae658 100644
--- a/Tests/TestApp/src/TestBlendState.cpp
+++ b/Tests/TestApp/src/TestBlendState.cpp
@@ -223,12 +223,12 @@ TestBlendState::TestBlendState( IRenderDevice *pDevice, IDeviceContext *pContext
//pScript->GetPipelineStateByName( "TestPSO2", &pPSOFromScript2 );
//assert( pPSOFromScript == pBSFromScript2 );
const auto &PSODesc = pPSOFromScript->GetDesc();
- const auto &BSDesc = PSODesc.GraphicsPipeline.BlendDesc;
+ const auto &BSDesc2 = PSODesc.GraphicsPipeline.BlendDesc;
assert( strcmp(PSODesc.Name, "TestPSO_FromScript") == 0 );
- assert( BSDesc.IndependentBlendEnable == true );
- assert( BSDesc.AlphaToCoverageEnable == false );
- const auto &RT1 = BSDesc.RenderTargets[0];
+ assert( BSDesc2.IndependentBlendEnable == true );
+ assert( BSDesc2.AlphaToCoverageEnable == false );
+ const auto &RT1 = BSDesc2.RenderTargets[0];
assert( RT1.BlendEnable == true);
assert( RT1.SrcBlend == BLEND_FACTOR_ZERO);
assert( RT1.DestBlend == BLEND_FACTOR_SRC_COLOR);
@@ -238,7 +238,7 @@ TestBlendState::TestBlendState( IRenderDevice *pDevice, IDeviceContext *pContext
assert( RT1.BlendOpAlpha == BLEND_OPERATION_SUBTRACT);
assert( RT1.RenderTargetWriteMask == (COLOR_MASK_GREEN | COLOR_MASK_RED) );
- const auto& RT3 = BSDesc.RenderTargets[2];
+ const auto& RT3 = BSDesc2.RenderTargets[2];
assert(RT3.BlendEnable == true);
assert(RT3.SrcBlend == BLEND_FACTOR_INV_DEST_ALPHA);
assert(RT3.DestBlend == BLEND_FACTOR_INV_DEST_COLOR);