From 957ec901f625f0126da613e15330bd5aa424095d Mon Sep 17 00:00:00 2001 From: Egor Date: Sun, 18 Feb 2018 16:40:57 -0800 Subject: Reduced number of render targets in Blend State test to 4 on GLES device --- Tests/TestApp/src/TestBlendState.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; -- cgit v1.2.3