From 566991897efc9f939b57bbdc434cbfafb8bc3fe9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Janiszewski?= Date: Sat, 30 Dec 2017 00:09:32 +0100 Subject: [PATCH] Add compile guard to not miss SSE4.1 --- src/openrct2/drawing/SSE41Drawing.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/openrct2/drawing/SSE41Drawing.cpp b/src/openrct2/drawing/SSE41Drawing.cpp index d45f2c5152..ac31974945 100644 --- a/src/openrct2/drawing/SSE41Drawing.cpp +++ b/src/openrct2/drawing/SSE41Drawing.cpp @@ -64,6 +64,10 @@ void mask_sse4_1(sint32 width, sint32 height, const uint8 * RESTRICT maskSrc, co #else +#ifdef OPENRCT2_X86 +#error You have to compile this file with SSE4.1 enabled, when targetting x86! +#endif + void mask_sse4_1(sint32 width, sint32 height, const uint8 * RESTRICT maskSrc, const uint8 * RESTRICT colourSrc, uint8 * RESTRICT dst, sint32 maskWrap, sint32 colourWrap, sint32 dstWrap) {