* 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 54cecff923
commit a41624276c

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);