[PATCH 5/5] wined3d: Correctly check if the destination format is FBO attachable in fbo_blit_supported().

Henri Verbeet hverbeet at codeweavers.com
Mon Apr 4 10:46:05 CDT 2011


Like ca381b610c50e3a44713f536ced61e30e0e4f152, this was introduced by
f1ca14cb5ba259b8eab9bccbb9a4813027c3beb8.
---
 dlls/wined3d/surface.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c
index bbbdd49..88210bb 100644
--- a/dlls/wined3d/surface.c
+++ b/dlls/wined3d/surface.c
@@ -4983,7 +4983,7 @@ static BOOL fbo_blit_supported(const struct wined3d_gl_info *gl_info, enum blit_
         return FALSE;
 
     if (!((src_format->flags & WINED3DFMT_FLAG_FBO_ATTACHABLE) || (src_usage & WINED3DUSAGE_RENDERTARGET))
-            && ((dst_format->flags & WINED3DFMT_FLAG_FBO_ATTACHABLE) || (dst_usage & WINED3DUSAGE_RENDERTARGET)))
+            || !((dst_format->flags & WINED3DFMT_FLAG_FBO_ATTACHABLE) || (dst_usage & WINED3DUSAGE_RENDERTARGET)))
         return FALSE;
 
     if (!(src_format->id == dst_format->id
-- 
1.7.3.4




More information about the wine-patches mailing list