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).
This commit is contained in:
Matteo Bruni 2011-11-09 22:16:37 +01:00 committed by Alexandre Julliard
parent 56c9952ee6
commit 62a2ad3d0f
1 changed files with 3 additions and 1 deletions

View File

@ -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;