diff options
Diffstat (limited to 'Tests/TestApp/src/TestBlendState.cpp')
| -rw-r--r-- | Tests/TestApp/src/TestBlendState.cpp | 4 |
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; |
