summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-08-26 22:57:39 +0300
committerAndrei Karas <akaras@inbox.ru>2013-08-26 22:57:39 +0300
commit80437e1e8c6154c99b19a0a7ea6485b0af8b40f1 (patch)
tree0f95c0900e307d3b9fa6eaf45ca1946e77cdaf9a
parent468552b44bddd6856936c3293b8d19d0b225a4c9 (diff)
downloadplus-80437e1e8c6154c99b19a0a7ea6485b0af8b40f1.tar.gz
plus-80437e1e8c6154c99b19a0a7ea6485b0af8b40f1.tar.bz2
plus-80437e1e8c6154c99b19a0a7ea6485b0af8b40f1.tar.xz
plus-80437e1e8c6154c99b19a0a7ea6485b0af8b40f1.zip
set SDL2 renderer flags to software mode.
SDL2 software mode perfomance is sucks :(
-rw-r--r--src/sdl2graphics.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sdl2graphics.cpp b/src/sdl2graphics.cpp
index 91b70cdf3..1525f32fd 100644
--- a/src/sdl2graphics.cpp
+++ b/src/sdl2graphics.cpp
@@ -611,7 +611,7 @@ bool SDLGraphics::setVideoMode(const int w, const int h, const int bpp,
mRect.w = w1;
mRect.h = h1;
- mRenderer = graphicsManager.createRenderer(mWindow, 0);
+ mRenderer = graphicsManager.createRenderer(mWindow, SDL_RENDERER_SOFTWARE);
SDLImageHelper::setRenderer(mRenderer);
return videoInfo();
}