[PATCH 5/5] wined3d: Print the WINED3D_SWAP_EFFECT_FLIP FIXME only once.

Henri Verbeet hverbeet at codeweavers.com
Fri Dec 6 04:09:56 CST 2013


The comment is also outdated.
---
 dlls/wined3d/swapchain.c |   12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)

diff --git a/dlls/wined3d/swapchain.c b/dlls/wined3d/swapchain.c
index 3d5aef7..6675c35 100644
--- a/dlls/wined3d/swapchain.c
+++ b/dlls/wined3d/swapchain.c
@@ -510,14 +510,10 @@ static void swapchain_gl_present(struct wined3d_swapchain *swapchain, const RECT
 
     if (swapchain->render_to_fbo)
     {
-        /* This codepath should only be hit with the COPY swapeffect. Otherwise a backbuffer-
-         * window size mismatch is impossible(fullscreen) and src and dst rectangles are
-         * not allowed(they need the COPY swapeffect)
-         *
-         * The DISCARD swap effect is ok as well since any backbuffer content is allowed after
-         * the swap. */
-        if (swapchain->desc.swap_effect == WINED3D_SWAP_EFFECT_FLIP)
-            FIXME("Render-to-fbo with WINED3D_SWAP_EFFECT_FLIP\n");
+        static unsigned int once;
+
+        if (swapchain->desc.swap_effect == WINED3D_SWAP_EFFECT_FLIP && !once++)
+            FIXME("WINED3D_SWAP_EFFECT_FLIP not implemented.\n");
 
         swapchain_blit(swapchain, context, &src_rect, &dst_rect);
     }
-- 
1.7.10.4




More information about the wine-patches mailing list