diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-11-12 00:31:01 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-11-12 02:02:29 +0300 |
commit | caa6802392ef5bd400d080d3d7778e19f815074c (patch) | |
tree | 042a0a17e504b8e08cf117520f9867a6db604dc0 /src | |
parent | 3a015df78179ac16fb3344beaa09f4902533f13f (diff) | |
download | ManaVerse-caa6802392ef5bd400d080d3d7778e19f815074c.tar.gz ManaVerse-caa6802392ef5bd400d080d3d7778e19f815074c.tar.bz2 ManaVerse-caa6802392ef5bd400d080d3d7778e19f815074c.tar.xz ManaVerse-caa6802392ef5bd400d080d3d7778e19f815074c.zip |
Fix crash in dyecmd compiled with compiler with support for SIMD.
Diffstat (limited to 'src')
-rw-r--r-- | src/progs/dyecmd/dyemain.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/progs/dyecmd/dyemain.cpp b/src/progs/dyecmd/dyemain.cpp index 383bb2495..310ee04a7 100644 --- a/src/progs/dyecmd/dyemain.cpp +++ b/src/progs/dyecmd/dyemain.cpp @@ -26,6 +26,8 @@ #include "fs/virtfs/fs.h" +#include "resources/dye/dyepalette.h" + #include "resources/image/image.h" #ifdef USE_SDL2 @@ -34,6 +36,7 @@ #include "resources/loaders/imageloader.h" +#include "utils/cpu.h" #include "utils/gettext.h" #include "utils/pnglib.h" #include "utils/sdlhelper.h" @@ -79,6 +82,9 @@ int main(int argc, char **argv) VirtFs::init(argv[0]); SDL_Init(SDL_INIT_VIDEO); + Cpu::detect(); + DyePalette::initFunctions(); + graphicsManager.createWindow(10, 10, 0, SDL_ANYFORMAT); #ifdef USE_SDL2 |