[cogl/msvc-support] Revert patch for 650833
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cogl/msvc-support] Revert patch for 650833
- Date: Mon, 18 Jul 2011 16:01:37 +0000 (UTC)
commit 3530d3dd36b0597493a4a0de22baf7be6e62cbde
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Tue Jul 19 00:01:24 2011 +0800
Revert patch for 650833
Need a workaround as there seems to be a bug in 32-bit modff on Visual C++
cogl/cogl-texture-2d.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/cogl/cogl-texture-2d.c b/cogl/cogl-texture-2d.c
index de7d2ab..71ff44a 100644
--- a/cogl/cogl-texture-2d.c
+++ b/cogl/cogl-texture-2d.c
@@ -65,11 +65,11 @@ static void
_cogl_texture_2d_wrap_coords (float t_1, float t_2,
float *out_t_1, float *out_t_2)
{
- double int_part;
+ float int_part;
/* Wrap t_1 and t_2 to the range [0,1] */
- modff (t_1 < t_2 ? t_1 : t_2, (float*)&int_part);
+ modff (t_1 < t_2 ? t_1 : t_2, &int_part);
t_1 -= int_part;
t_2 -= int_part;
if (cogl_util_float_signbit (int_part))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]