jhavk - 2005-04-12

In function RasterScanline there is a call to Log2( )

rasterInfo.MipmapLevel[0] = EGL_Min(Log2(rho), rasterInfo.MaxMipmapLevel[0]);

rho is of type EGL_fixed which means it is 16.16. But Log2 takes as input an integer. So shouldn't rho be first shifted by 16 before passing it to Log.

rasterInfo.MipmapLevel[0] = EGL_Min(Log2(rho>>16), rasterInfo.MaxMipmapLevel[0]);