Matteo Bruni : wined3d: Fix blending test expected results.

Alexandre Julliard julliard at winehq.org
Tue Aug 21 13:40:17 CDT 2012


Module: wine
Branch: master
Commit: f89f30e0c01f60e67c5a004068deccbfcd60fbe2
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=f89f30e0c01f60e67c5a004068deccbfcd60fbe2

Author: Matteo Bruni <mbruni at codeweavers.com>
Date:   Mon Aug 20 22:34:57 2012 +0200

wined3d: Fix blending test expected results.

---

 dlls/wined3d/utils.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/dlls/wined3d/utils.c b/dlls/wined3d/utils.c
index 4f8108f..8db556d 100644
--- a/dlls/wined3d/utils.c
+++ b/dlls/wined3d/utils.c
@@ -1138,9 +1138,9 @@ static void check_fbo_compat(const struct wined3d_gl_info *gl_info, struct wined
             a = color >> 24;
             r = (color & 0x00ff0000) >> 16;
 
-            r_range = format->red_size < 8 ? 1 << (8 - format->red_size - 1) : 1;
-            a_range = format->alpha_size < 8 ? 1 << (8 - format->alpha_size - 1) : 1;
-            if (format->red_size && (r < 0x80 - r_range || r > 0x80 + r_range))
+            r_range = format->red_size < 8 ? 1 << (8 - format->red_size) : 1;
+            a_range = format->alpha_size < 8 ? 1 << (8 - format->alpha_size) : 1;
+            if (format->red_size && (r < 0x7f - r_range || r > 0x7f + r_range))
                 match = FALSE;
             else if (format->alpha_size > 1 && (a < 0xbf - a_range || a > 0xbf + a_range))
                 match = FALSE;




More information about the wine-cvs mailing list