[PATCH 08/10] wined3d: Call wined3d_check_pixel_format_color() also for adapter format.

Józef Kucia jkucia at codeweavers.com
Thu Mar 28 03:53:55 CDT 2019


In preparation for the next commit.

Signed-off-by: Józef Kucia <jkucia at codeweavers.com>
---
 dlls/wined3d/directx.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dlls/wined3d/directx.c b/dlls/wined3d/directx.c
index 801d11c89f4a..260fcc342326 100644
--- a/dlls/wined3d/directx.c
+++ b/dlls/wined3d/directx.c
@@ -1468,6 +1468,7 @@ static BOOL wined3d_check_render_target_format(const struct wined3d_adapter *ada
         for (i = 0; i < adapter->cfg_count; ++i)
         {
             if (cfgs[i].windowDrawable
+                    && wined3d_check_pixel_format_color(&cfgs[i], adapter_format)
                     && wined3d_check_pixel_format_color(&cfgs[i], rt_format))
             {
                 TRACE("Pixel format %d is compatible with format %s.\n",
-- 
2.19.2




More information about the wine-devel mailing list