Module: wine
Branch: master
Commit: 660bc8b7171f7fbc88a5f65d3b535ce6a7168ace
URL: http://source.winehq.org/git/wine.git/?a=commit;h=660bc8b7171f7fbc88a5f65d3…
Author: Henri Verbeet <hverbeet(a)codeweavers.com>
Date: Fri Dec 6 11:09:56 2013 +0100
wined3d: Print the WINED3D_SWAP_EFFECT_FLIP FIXME only once.
The comment is also outdated.
---
dlls/wined3d/swapchain.c | 12 ++++--------
1 files 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);
}