From a472f50767c1601d99e0b8e2d9177720dc1af632 Mon Sep 17 00:00:00 2001 From: Christophe Riccio Date: Fri, 1 May 2015 14:13:48 +0200 Subject: [PATCH] Fixed C++98 build --- test/gtc/gtc_bitfield.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/gtc/gtc_bitfield.cpp b/test/gtc/gtc_bitfield.cpp index 3f1c1ed1..e309ee41 100644 --- a/test/gtc/gtc_bitfield.cpp +++ b/test/gtc/gtc_bitfield.cpp @@ -634,8 +634,10 @@ namespace bitfieldInterleave # if(GLM_ARCH != GLM_ARCH_PURE) { // SIMD - std::vector<__m128i> SimdData(x_max * y_max); - std::vector<__m128i> SimdParam(x_max * y_max); + std::vector<__m128i> SimdData; + SimdData.resize(x_max * y_max); + std::vector<__m128i> SimdParam; + SimdParam.resize(x_max * y_max); for(int i = 0; i < SimdParam.size(); ++i) SimdParam[i] = _mm_set_epi32(i % x_max, 0, i / y_max, 0);