summaryrefslogtreecommitdiff
path: root/src/progs/dyecmd
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-11-12 00:31:01 +0300
committerAndrei Karas <akaras@inbox.ru>2018-11-12 02:02:29 +0300
commitcaa6802392ef5bd400d080d3d7778e19f815074c (patch)
tree042a0a17e504b8e08cf117520f9867a6db604dc0 /src/progs/dyecmd
parent3a015df78179ac16fb3344beaa09f4902533f13f (diff)
downloadmanaverse-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/progs/dyecmd')
-rw-r--r--src/progs/dyecmd/dyemain.cpp6
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