diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2013-03-05 15:44:13 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2013-03-05 15:44:21 +0000 |
commit | 5922ff1669d75f7ce66b82a13bf54f448e27ce74 (patch) | |
tree | c19bed1ee5c6f1d36b1a90861fad6067f6e62421 /main/mesa-demos/sincos.patch | |
parent | 97c65d847652891eafe3f4c122594f5b6aba0b68 (diff) | |
download | aports-5922ff1669d75f7ce66b82a13bf54f448e27ce74.tar.bz2 aports-5922ff1669d75f7ce66b82a13bf54f448e27ce74.tar.xz |
main/mesa-demos: upgrade to 8.1.0
Diffstat (limited to 'main/mesa-demos/sincos.patch')
-rw-r--r-- | main/mesa-demos/sincos.patch | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/main/mesa-demos/sincos.patch b/main/mesa-demos/sincos.patch deleted file mode 100644 index 38da0285d1..0000000000 --- a/main/mesa-demos/sincos.patch +++ /dev/null @@ -1,32 +0,0 @@ ---- ./src/egl/opengles2/es2gears.c.orig -+++ ./src/egl/opengles2/es2gears.c -@@ -109,13 +109,15 @@ - c[4] = 1; - v = gear->vertices; - for (i = 0; i < teeth; i++) { -+ GLint j; - s[0] = s[4]; - c[0] = c[4]; -- sincos(i * 2.0 * M_PI / teeth + da, &s[1], &c[1]); -- sincos(i * 2.0 * M_PI / teeth + da * 2, &s[2], &c[2]); -- sincos(i * 2.0 * M_PI / teeth + da * 3, &s[3], &c[3]); -- sincos(i * 2.0 * M_PI / teeth + da * 4, &s[4], &c[4]); - -+ for (j=1; j <=4; j++) { -+ s[j] = sin(i * 2.0 * M_PI / teeth + da * j); -+ c[j] = cos(i * 2.0 * M_PI / teeth + da * j); -+ } -+ - normal[0] = 0.0; - normal[1] = 0.0; - normal[2] = 1.0; -@@ -199,7 +201,8 @@ - { - double s, c; - -- sincos(angle, &s, &c); -+ s = sin(angle); -+ c = cos(angle); - GLfloat r[16] = { - x * x * (1 - c) + c, y * x * (1 - c) + z * s, x * z * (1 - c) - y * s, 0, - x * y * (1 - c) - z * s, y * y * (1 - c) + c, y * z * (1 - c) + x * s, 0, |