From a49a19c448881b198d15518f1fc0ba8b1506eb6b Mon Sep 17 00:00:00 2001 From: narzoul Date: Sat, 2 Nov 2019 11:20:52 +0100 Subject: [PATCH] Fixed compilation error after Visual Studio update --- DDrawCompat/DDraw/Blitter.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/DDrawCompat/DDraw/Blitter.cpp b/DDrawCompat/DDraw/Blitter.cpp index 6903dcb..16af97f 100644 --- a/DDrawCompat/DDraw/Blitter.cpp +++ b/DDrawCompat/DDraw/Blitter.cpp @@ -1,4 +1,5 @@ #include +#include #include #include @@ -146,7 +147,7 @@ namespace } template - __forceinline void loadSrcVectorRemainder(__m128i& vec, + __forceinline typename std::enable_if<0 != count>::type loadSrcVectorRemainder(__m128i& vec, const WORD* src, int& offset, int delta, std::integral_constant) { vec = _mm_insert_epi16(vec, *(src + (offset >> 16)), pixelsPerVector - count); @@ -161,7 +162,7 @@ namespace } template - __forceinline void loadSrcVectorRemainder(__m128i& vec, + __forceinline typename std::enable_if<0 != count>::type loadSrcVectorRemainder(__m128i& vec, const DWORD* src, int& offset, int delta, std::integral_constant) { __m128i pixel = _mm_loadu_si32(src + (offset >> 16));