summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDennis Kasprzyk <onestone@opencompositing.org>2008-01-25 03:27:10 +0100
committerDennis kasprzyk <onestone@opencompositing.org>2008-01-25 03:27:10 +0100
commitc8b1e07deb3cb3d32d14b7f3e5b1f40851db3c24 (patch)
tree26f1126bf20caf98ad1211697f99ddb89afb322f
parent017d567150d93454a51c889f80056f3fdf1f460b (diff)
downloadmag-c8b1e07deb3cb3d32d14b7f3e5b1f40851db3c24.tar.gz
mag-c8b1e07deb3cb3d32d14b7f3e5b1f40851db3c24.tar.bz2
Use COS instead of SIN because it's broken on intel.
-rw-r--r--mag.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mag.c b/mag.c
index dd60464..441edde 100644
--- a/mag.c
+++ b/mag.c
@@ -111,8 +111,8 @@ static const char *fisheyeFpString =
"SUB t0, t2, p0;"
"RCP t3, t2.x;"
- "MUL t3, t3, p1.z;"
- "SIN t3, t3.x;"
+ "MAD t3, t3, p1.z, p2.z;"
+ "COS t3, t3.x;"
"MUL t3, t3, p1.w;"
@@ -854,7 +854,7 @@ magPaintFisheye (CompScreen *s)
(zoom - 1.0) * zoom);
(*s->programEnvParameter4f) (GL_FRAGMENT_PROGRAM_ARB, 2,
-x1 * pw, -(s->height - y2) * ph,
- 0.0, 0.0);
+ -M_PI / 2.0, 0.0);
x1 = MAX (0.0, ms->posX - radius);
x2 = MIN (s->width, ms->posX + radius);