[PATCH 2/3] wined3d: Skip blending test on some texture formats.

Matteo Bruni mbruni at codeweavers.com
Wed Nov 9 15:16:37 CST 2011


It doesn't make sense to test NULL and P8, while the luminance formats
right now aren't really tested anyway (and "incidentally" that also
workarounds a Nvidia drivers bug).
---
 dlls/wined3d/utils.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/dlls/wined3d/utils.c b/dlls/wined3d/utils.c
index baf2548..d61172e 100644
--- a/dlls/wined3d/utils.c
+++ b/dlls/wined3d/utils.c
@@ -1061,7 +1061,9 @@ static void check_fbo_compat(const struct wined3d_gl_info *gl_info, struct wined
     }
 
     if (status == GL_FRAMEBUFFER_COMPLETE && ((format->flags & WINED3DFMT_FLAG_POSTPIXELSHADER_BLENDING)
-            || !(gl_info->quirks & WINED3D_QUIRK_LIMITED_TEX_FILTERING)))
+            || !(gl_info->quirks & WINED3D_QUIRK_LIMITED_TEX_FILTERING))
+            && format->id != WINED3DFMT_NULL && format->id != WINED3DFMT_P8_UINT
+            && format->glFormat != GL_LUMINANCE && format->glFormat != GL_LUMINANCE_ALPHA)
     {
         GLuint rb, tex2;
         DWORD readback[16 * 16], color;
-- 
1.7.3.4




More information about the wine-patches mailing list