Commit 62a2ad3d authored by Matteo Bruni's avatar Matteo Bruni Committed by Alexandre Julliard

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).
parent 56c9952e
...@@ -1061,7 +1061,9 @@ static void check_fbo_compat(const struct wined3d_gl_info *gl_info, struct wined ...@@ -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) 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; GLuint rb, tex2;
DWORD readback[16 * 16], color; DWORD readback[16 * 16], color;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment