From 262128c74556280950bdf3c3de482504b370f76a Mon Sep 17 00:00:00 2001 From: Mathieu Schroeter Date: Thu, 26 Jan 2017 18:55:36 +0100 Subject: [PATCH] Move renderer at the right place --- blupi.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/blupi.cpp b/blupi.cpp index 9c9b792..0ee30d7 100644 --- a/blupi.cpp +++ b/blupi.cpp @@ -652,9 +652,10 @@ static bool DoInit(HINSTANCE hInstance, LPSTR lpCmdLine, int nCmdShow) ); g_window = SDL_CreateWindow (NAME, (sx - LXIMAGE) / 2, (sy - LYIMAGE) / 2, WindowRect.right - WindowRect.left, WindowRect.bottom - WindowRect.top, 0); - g_renderer = SDL_CreateRenderer (g_window, -1, SDL_RENDERER_ACCELERATED | SDL_RENDERER_TARGETTEXTURE); } + g_renderer = SDL_CreateRenderer (g_window, -1, SDL_RENDERER_ACCELERATED | SDL_RENDERER_TARGETTEXTURE); + if ( !g_hWnd ) return false; if (!g_window)