diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-08-25 19:36:20 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-08-25 23:26:55 +0300 |
commit | d5847d54a527c41006cb4cade15d0b6346490e77 (patch) | |
tree | 5146fc48f6e2d10eb3f41f1b20eac16f66b36f28 /src/graphicsmanager.cpp | |
parent | 5b20a3d95717f75d33801c4dd2b093e106d90541 (diff) | |
download | manaverse-d5847d54a527c41006cb4cade15d0b6346490e77.tar.gz manaverse-d5847d54a527c41006cb4cade15d0b6346490e77.tar.bz2 manaverse-d5847d54a527c41006cb4cade15d0b6346490e77.tar.xz manaverse-d5847d54a527c41006cb4cade15d0b6346490e77.zip |
add partial support for software mode with SDL2.
Diffstat (limited to 'src/graphicsmanager.cpp')
-rw-r--r-- | src/graphicsmanager.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/graphicsmanager.cpp b/src/graphicsmanager.cpp index fb1ce3a32..d39af895d 100644 --- a/src/graphicsmanager.cpp +++ b/src/graphicsmanager.cpp @@ -374,7 +374,9 @@ SDL_Renderer *GraphicsManager::createRenderer(SDL_Window *const window, const int flags) { // +++ need use different drivers and different flags - return SDL_CreateRenderer(window, -1, flags); + SDL_Renderer *const renderer = SDL_CreateRenderer(window, -1, flags); + SDL_SetRenderDrawBlendMode(renderer, SDL_BLENDMODE_BLEND); + return renderer; } #endif |