http://bugs.winehq.org/show_bug.cgi?id=27145
mennozon@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #36473|1 |0 is obsolete| |
--- Comment #32 from mennozon@gmail.com 2011-09-19 17:32:49 CDT --- (From update of attachment 36473) --- orig/wine-1.3.28/dlls/wined3d/state.c 2011-09-09 19:43:48.000000000 +0200 +++ wine-1.3.28/dlls/wined3d/state.c 2011-09-20 00:19:10.116608448 +0200 @@ -1694,7 +1694,7 @@ if (depth) { const struct wined3d_format *fmt = depth->resource.format; - scale = powf(2, fmt->depth_size) - 1; + scale = powf(2, fmt->depth_size) / 1000 ; TRACE("Depth format %s, using depthbias scale of %.8e.\n", debug_d3dformat(fmt->id), scale); }