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]);
Log in to post a comment.
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]);