aboutsummaryrefslogtreecommitdiff
path: root/mesalib
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2014-04-23 23:23:44 +0200
committermarha <marha@users.sourceforge.net>2014-04-23 23:23:44 +0200
commit26287ff521b55de188c7b41eee4bff389844c6c3 (patch)
tree545263de6a5c314743d0b818bf6a942bae9909e3 /mesalib
parent24fb0da18f1c44dfa1f76d8cde8efbb958aa7659 (diff)
downloadvcxsrv-26287ff521b55de188c7b41eee4bff389844c6c3.tar.gz
vcxsrv-26287ff521b55de188c7b41eee4bff389844c6c3.tar.bz2
vcxsrv-26287ff521b55de188c7b41eee4bff389844c6c3.zip
Solved compile problems due to latest merge
Diffstat (limited to 'mesalib')
-rwxr-xr-xmesalib/src/glsl/builtin_functions.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/mesalib/src/glsl/builtin_functions.cpp b/mesalib/src/glsl/builtin_functions.cpp
index a326f4358..704458115 100755
--- a/mesalib/src/glsl/builtin_functions.cpp
+++ b/mesalib/src/glsl/builtin_functions.cpp
@@ -64,9 +64,9 @@
#define f(x) join(x)
#define join(x) x ## f
-#define M_PIf f(M_PI)
-#define M_PI_2f f(M_PI_2)
-#define M_PI_4f f(M_PI_4)
+#define M_PIf ((float)M_PI)
+#define M_PI_2f (M_PIf/2.0f)
+#define M_PI_4f (M_PIf/4.0f)
using namespace ir_builder;