diff options
Diffstat (limited to 'mesalib/src')
-rwxr-xr-x | mesalib/src/glsl/builtin_functions.cpp | 6 |
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; |