mirror of
https://github.com/brl/mutter.git
synced 2024-12-25 04:22:05 +00:00
* 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:
parent
54cecff923
commit
a41624276c
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user