From 7b046238346958733109d1840ff6aae026b0f95c Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Sat, 17 Feb 2018 14:06:28 -0800 Subject: Fixed test app runtime issues on iOS --- Tests/TestApp/src/TestRenderTarget.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Tests/TestApp/src/TestRenderTarget.cpp') 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); } -- cgit v1.2.3