From 8c6622dd820d5bf9899d6c512684e621351d4f4e Mon Sep 17 00:00:00 2001 From: Raul Tambre Date: Tue, 29 Jul 2014 11:28:15 +0300 Subject: [PATCH] Fix debugger startup error --- rpcs3/Gui/RSXDebugger.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rpcs3/Gui/RSXDebugger.cpp b/rpcs3/Gui/RSXDebugger.cpp index 65e64e72b7..b145d49079 100644 --- a/rpcs3/Gui/RSXDebugger.cpp +++ b/rpcs3/Gui/RSXDebugger.cpp @@ -443,7 +443,9 @@ void RSXDebugger::GetBuffers() wxImage img(width, height, buffer); wxClientDC dc_canvas(pnl); - dc_canvas.DrawBitmap(img.Scale(m_panel_width, m_panel_height), 0, 0, false); + + if (img.IsOk()) + dc_canvas.DrawBitmap(img.Scale(m_panel_width, m_panel_height), 0, 0, false); } // Draw Texture