fix crash bug caused by Windows sleep.

This commit is contained in:
hecomi
2018-09-12 21:40:57 +09:00
parent 0f43788650
commit f4096ec9fb
3 changed files with 7 additions and 1 deletions
@@ -77,7 +77,13 @@ void Monitor::Render()
if (unityTexture_ == nullptr)
{
Debug::Error("Monitor::Render() => Target texture has not been set yet..");
Debug::Error("Monitor::Render() => Target texture has not been set yet.");
return;
}
if (!frame.texture)
{
Debug::Error("Monitor::Render() => frame doesn't have texture.");
return;
}