Matteo Bruni : wined3d: Skip blending test on some texture formats.
Alexandre Julliard
julliard at winehq.org
Mon Nov 14 13:33:58 CST 2011
Module: wine
Branch: master
Commit: 62a2ad3d0f8d8435619924a6ff4a19adf94c16cc
URL: http://source.winehq.org/git/wine.git/?a=commit;h=62a2ad3d0f8d8435619924a6ff4a19adf94c16cc
Author: Matteo Bruni <mbruni at codeweavers.com>
Date: Wed Nov 9 22:16:37 2011 +0100
wined3d: Skip blending test on some texture formats.
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;
More information about the wine-cvs
mailing list