summaryrefslogtreecommitdiffstats
path: root/Tests/TestApp/src/TestRenderTarget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/TestApp/src/TestRenderTarget.cpp')
-rw-r--r--Tests/TestApp/src/TestRenderTarget.cpp8
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);
}