* clutter/cogl/gl/cogl.c (cogl_perspective): Use the accurate

64-bit multiplication macro instead of COGL_FIXED_FAST_DIV for
	calculating xmax as was done previously. This fixes
	test-perspective and other tests that had a gone a bit skewiff.
This commit is contained in:
Neil Roberts 2008-11-04 12:43:06 +00:00
parent 146967702f
commit a15ae21bd2
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,10 @@
2008-11-04 Neil Roberts <neil@linux.intel.com>
* clutter/cogl/gl/cogl.c (cogl_perspective): Use the accurate
64-bit multiplication macro instead of COGL_FIXED_FAST_DIV for
calculating xmax as was done previously. This fixes
test-perspective and other tests that had a gone a bit skewiff.
2008-11-04 Neil Roberts <neil@linux.intel.com>
Bug 1181 - In Score, timelines, appended at markers, are also

View File

@ -775,7 +775,7 @@ cogl_perspective (CoglFixed fovy,
COGL_FIXED_FAST_DIV (cogl_fixed_sin (fovy_rad_half),
cogl_fixed_cos (fovy_rad_half)));
xmax = COGL_FIXED_FAST_DIV (ymax, aspect);
xmax = COGL_FIXED_MUL (ymax, aspect);
x = COGL_FIXED_FAST_DIV (zNear, xmax);
y = COGL_FIXED_FAST_DIV (zNear, ymax);