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));