Henri Verbeet : wined3d: Don' t print the context recreation FIXME for FBO ORM.

Alexandre Julliard julliard at winehq.org
Tue Sep 13 12:18:08 CDT 2011


Module: wine
Branch: master
Commit: 66637ea35cceb4aed9e276e145ba24310f8a269d
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=66637ea35cceb4aed9e276e145ba24310f8a269d

Author: Henri Verbeet <hverbeet at codeweavers.com>
Date:   Mon Sep 12 19:51:17 2011 +0200

wined3d: Don't print the context recreation FIXME for FBO ORM.

With FBOs we can just render offscreen to an appropriate depth/stencil buffer.

---

 dlls/wined3d/swapchain.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/dlls/wined3d/swapchain.c b/dlls/wined3d/swapchain.c
index d8cc0c9..126a991 100644
--- a/dlls/wined3d/swapchain.c
+++ b/dlls/wined3d/swapchain.c
@@ -1023,8 +1023,9 @@ static HRESULT swapchain_init(struct wined3d_swapchain *swapchain, WINED3DSURFTY
             goto err;
         }
 
-        if (!present_parameters->EnableAutoDepthStencil
-                || swapchain->presentParms.AutoDepthStencilFormat != swapchain->ds_format->id)
+        if (wined3d_settings.offscreen_rendering_mode != ORM_FBO
+                && (!present_parameters->EnableAutoDepthStencil
+                || swapchain->presentParms.AutoDepthStencilFormat != swapchain->ds_format->id))
         {
             FIXME("Add OpenGL context recreation support to context_validate_onscreen_formats\n");
         }




More information about the wine-cvs mailing list