diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-09-02 01:16:35 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-09-02 01:16:35 +0300 |
commit | d927e92e98057c544ff6829d26807e8bc22a7441 (patch) | |
tree | af64ddcf0ad4ab0a8bc94ba6eaf9cf21817cdff6 /src | |
parent | 2cff8f67ed362d0996610a7fd6f27b445afa521c (diff) | |
download | mv-d927e92e98057c544ff6829d26807e8bc22a7441.tar.gz mv-d927e92e98057c544ff6829d26807e8bc22a7441.tar.bz2 mv-d927e92e98057c544ff6829d26807e8bc22a7441.tar.xz mv-d927e92e98057c544ff6829d26807e8bc22a7441.zip |
fix SDL2 default render mode.
fixed image helper type flag.
Diffstat (limited to 'src')
-rw-r--r-- | src/graphicsmanager.cpp | 1 | ||||
-rw-r--r-- | src/resources/sdl2imagehelper.cpp | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/src/graphicsmanager.cpp b/src/graphicsmanager.cpp index 471bcb630..cda6f801f 100644 --- a/src/graphicsmanager.cpp +++ b/src/graphicsmanager.cpp @@ -270,7 +270,6 @@ void GraphicsManager::initGraphics(const bool noOpenGL) break; #ifdef USE_SDL2 case RENDER_SDL2_DEFAULT: - // for debug SDL2 default is same as software mode imageHelper = new SDLImageHelper; surfaceImageHelper = new SurfaceImageHelper; mainGraphics = new SDLGraphics; diff --git a/src/resources/sdl2imagehelper.cpp b/src/resources/sdl2imagehelper.cpp index eedb58de3..0433d2595 100644 --- a/src/resources/sdl2imagehelper.cpp +++ b/src/resources/sdl2imagehelper.cpp @@ -148,7 +148,7 @@ Image *SDLImageHelper::_SDLload(SDL_Surface *tmpImage) const RenderType SDLImageHelper::useOpenGL() const { - return RENDER_SOFTWARE; + return RENDER_SDL2_DEFAULT; } SDL_Surface *SDLImageHelper::create32BitSurface(int width, int height) const |