From a9c81fad7de84bd3b72d53a5be1fb7527aed10c1 Mon Sep 17 00:00:00 2001 From: "memberTwo.mb2" Date: Mon, 29 Sep 2008 12:15:11 +0000 Subject: [PATCH] Stop crash with ogl and render to child window fix. (issue 200) git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@725 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/Core/Src/Core.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Core/Core/Src/Core.cpp b/Source/Core/Core/Src/Core.cpp index b107752693..a748ae8eb1 100644 --- a/Source/Core/Core/Src/Core.cpp +++ b/Source/Core/Core/Src/Core.cpp @@ -402,8 +402,8 @@ THREAD_RETURN EmuThread(void *pArg) LOG(MASTER_LOG, "EmuThread exited"); //The CPU should return when a game is stopped and cleanup should be done here, //so we can restart the plugins (or load new ones) for the next game - - Host_UpdateMainFrame(); + if (_CoreParameter.hMainWindow == g_pWindowHandle) + Host_UpdateMainFrame(); return 0; }