summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEgor <egor.yusov@gmail.com>2018-02-19 00:40:57 +0000
committerEgor <egor.yusov@gmail.com>2018-02-19 00:40:57 +0000
commit957ec901f625f0126da613e15330bd5aa424095d (patch)
tree0561acd35aa55f2485178716a1fcc56295c9b624
parentDisabled dual-source color blend testing on GLES as it is not supported even ... (diff)
downloadDiligentEngine-957ec901f625f0126da613e15330bd5aa424095d.tar.gz
DiligentEngine-957ec901f625f0126da613e15330bd5aa424095d.zip
Reduced number of render targets in Blend State test to 4 on GLES device
-rw-r--r--Tests/TestApp/src/TestBlendState.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/Tests/TestApp/src/TestBlendState.cpp b/Tests/TestApp/src/TestBlendState.cpp
index 9ee7fe2..1c0c526 100644
--- a/Tests/TestApp/src/TestBlendState.cpp
+++ b/Tests/TestApp/src/TestBlendState.cpp
@@ -84,7 +84,9 @@ TestBlendState::TestBlendState( IRenderDevice *pDevice, IDeviceContext *pContext
BLEND_FACTOR_INV_SRC1_ALPHA,
};
- for( int i = 0; i < BlendStateDesc::MaxRenderTargets; ++i )
+ // GLES is required to support 4 render targets
+ int NumRenderTargetsToTest = DevCaps.DevType == DeviceType::OpenGLES ? 4 : 8;
+ for( int i = 0; i < NumRenderTargetsToTest; ++i )
{
auto &RT = BSDesc.RenderTargets[i];
RT.BlendEnable = True;