From 5e4fcb8a6036746ec1b500297fa55989a80094b4 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 22 Aug 2013 14:47:53 +0300 Subject: final SDL2 compilation fixes. now it can be compiled, but still not works. --- src/graphicsmanager.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/graphicsmanager.cpp') diff --git a/src/graphicsmanager.cpp b/src/graphicsmanager.cpp index 25131957f..0e0ac4fa3 100644 --- a/src/graphicsmanager.cpp +++ b/src/graphicsmanager.cpp @@ -360,6 +360,15 @@ SDL_Window *GraphicsManager::createWindow(const int w, const int h, #endif } +#ifdef USE_SDL2 +SDL_Renderer *GraphicsManager::createRenderer(SDL_Window *const window, + const int flags) +{ + // +++ need use different drivers and different flags + return SDL_CreateRenderer(window, -1, flags); +} +#endif + #ifdef USE_OPENGL void GraphicsManager::updateExtensions() { -- cgit v1.2.3-70-g09d2