diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2018-02-17 22:06:28 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2018-02-17 22:06:28 +0000 |
| commit | 7b046238346958733109d1840ff6aae026b0f95c (patch) | |
| tree | b883af1835d23df9b30fb06eb179a3a873d60b95 /Tests/TestApp/src/TestRenderTarget.cpp | |
| parent | Added test result reporting (diff) | |
| download | DiligentEngine-7b046238346958733109d1840ff6aae026b0f95c.tar.gz DiligentEngine-7b046238346958733109d1840ff6aae026b0f95c.zip | |
Fixed test app runtime issues on iOS
Diffstat (limited to 'Tests/TestApp/src/TestRenderTarget.cpp')
| -rw-r--r-- | Tests/TestApp/src/TestRenderTarget.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Tests/TestApp/src/TestRenderTarget.cpp b/Tests/TestApp/src/TestRenderTarget.cpp index 485f818..e09acb1 100644 --- a/Tests/TestApp/src/TestRenderTarget.cpp +++ b/Tests/TestApp/src/TestRenderTarget.cpp @@ -38,6 +38,11 @@ TestRenderTarget::TestRenderTarget() : void TestRenderTarget::Init( IRenderDevice *pDevice, IDeviceContext *pDeviceContext, float fMinXCoord, float fMinYCoord, float fXExtent, float fYExtent ) { +#if PLATFORM_IOS + SetStatus(TestResult::Skipped); + return; +#endif + m_pRenderDevice = pDevice; m_pDeviceContext = pDeviceContext; m_pRenderScript = CreateRenderScriptFromFile( "TestRenderTargets.lua", pDevice, pDeviceContext, [&]( ScriptParser *pScriptParser ) @@ -51,6 +56,9 @@ void TestRenderTarget::Init( IRenderDevice *pDevice, IDeviceContext *pDeviceCont void TestRenderTarget::Draw() { + if(!m_pDeviceContext) + return; + m_pRenderScript->Run( m_pDeviceContext, "Render" ); SetStatus(TestResult::Succeeded); } |
