From 24075d56dddbf410b519453b23fd516d9f9baea0 Mon Sep 17 00:00:00 2001 From: Christophe Riccio Date: Sun, 11 Sep 2016 03:11:37 +0200 Subject: [PATCH] Fixed build --- glm/ext.hpp | 2 +- glm/gtc/color_encoding.inl | 36 ++++++++++++++++++------------------ 2 files changed, 19 insertions(+), 19 deletions(-) diff --git a/glm/ext.hpp b/glm/ext.hpp index fa10d8e1..204f3580 100644 --- a/glm/ext.hpp +++ b/glm/ext.hpp @@ -51,7 +51,7 @@ #include "./gtc/random.hpp" #include "./gtc/reciprocal.hpp" #include "./gtc/round.hpp" -#include "./gtc/type_aligned.hpp" +//#include "./gtc/type_aligned.hpp" #include "./gtc/type_precision.hpp" #include "./gtc/type_ptr.hpp" #include "./gtc/ulp.hpp" diff --git a/glm/gtc/color_encoding.inl b/glm/gtc/color_encoding.inl index 8d59c429..68570cbb 100644 --- a/glm/gtc/color_encoding.inl +++ b/glm/gtc/color_encoding.inl @@ -6,9 +6,9 @@ namespace glm template GLM_FUNC_QUALIFIER tvec3 convertLinearSRGBToD65XYZ(tvec3 const& ColorLinearSRGB) { - static const tvec3 M(0.490f, 0.17697f, 0.2f); - static const tvec3 N(0.31f, 0.8124f, 0.01063f); - static const tvec3 O(0.490f, 0.01f, 0.99f); + tvec3 const M(0.490f, 0.17697f, 0.2f); + tvec3 const N(0.31f, 0.8124f, 0.01063f); + tvec3 const O(0.490f, 0.01f, 0.99f); return (M * ColorLinearSRGB + N * ColorLinearSRGB + O * ColorLinearSRGB) * static_cast(5.650675255693055f); } @@ -16,9 +16,9 @@ namespace glm template GLM_FUNC_QUALIFIER tvec3 convertD65XYZToLinearSRGB(tvec3 const& ColorD65XYZ) { - static const tvec3 M(0.41847f, -0.091169f, 0.0009209f); - static const tvec3 N(-0.15866f, 0.25243f, 0.015708f); - static const tvec3 O(0.0009209f, -0.0025498f, 0.1786f); + tvec3 const M(0.41847f, -0.091169f, 0.0009209f); + tvec3 const N(-0.15866f, 0.25243f, 0.015708f); + tvec3 const O(0.0009209f, -0.0025498f, 0.1786f); return M * ColorD65XYZ + N * ColorD65XYZ + O * ColorD65XYZ; } @@ -26,9 +26,9 @@ namespace glm template GLM_FUNC_QUALIFIER tvec3 convertLinearSRGBToD50XYZ(tvec3 const& ColorLinearSRGB) { - static const tvec3 M(0.436030342570117f, 0.222438466210245f, 0.013897440074263f); - static const tvec3 N(0.385101860087134f, 0.716942745571917f, 0.097076381494207f); - static const tvec3 O(0.143067806654203f, 0.060618777416563f, 0.713926257896652f); + tvec3 const M(0.436030342570117f, 0.222438466210245f, 0.013897440074263f); + tvec3 const N(0.385101860087134f, 0.716942745571917f, 0.097076381494207f); + tvec3 const O(0.143067806654203f, 0.060618777416563f, 0.713926257896652f); return M * ColorLinearSRGB + N * ColorLinearSRGB + O * ColorLinearSRGB; } @@ -36,9 +36,9 @@ namespace glm template GLM_FUNC_QUALIFIER tvec3 convertD50XYZToLinearSRGB(tvec3 const& ColorD50XYZ) { - static const tvec3 M(); - static const tvec3 N(); - static const tvec3 O(); + tvec3 const M(); + tvec3 const N(); + tvec3 const O(); return M * ColorD65XYZ + N * ColorD65XYZ + O * ColorD65XYZ; } @@ -46,9 +46,9 @@ namespace glm template GLM_FUNC_QUALIFIER tvec3 convertD65XYZToD50XYZ(tvec3 const& ColorD65XYZ) { - static const tvec3 M(+1.047844353856414f, +0.029549007606644f, -0.009250984365223f); - static const tvec3 N(+0.022898981050086f, +0.990508028941971f, +0.015072338237051f); - static const tvec3 O(-0.050206647741605f, -0.017074711360960f, +0.751717835079977f); + tvec3 const M(+1.047844353856414f, +0.029549007606644f, -0.009250984365223f); + tvec3 const N(+0.022898981050086f, +0.990508028941971f, +0.015072338237051f); + tvec3 const O(-0.050206647741605f, -0.017074711360960f, +0.751717835079977f); return M * ColorD65XYZ + N * ColorD65XYZ + O * ColorD65XYZ; } @@ -56,9 +56,9 @@ namespace glm template GLM_FUNC_QUALIFIER tvec3 convertD50XYZToD65XYZ(tvec3 const& ColorD50XYZ) { - static const tvec3 M(); - static const tvec3 N(); - static const tvec3 O(); + tvec3 const M(); + tvec3 const N(); + tvec3 const O(); return M * ColorD50XYZ + N * ColorD50XYZ + O * ColorD50XYZ; }