Stefan Dösinger : wined3d: Always dump the fbo state on errors.

Alexandre Julliard julliard at winehq.org
Thu Dec 20 06:21:47 CST 2007


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

Author: Stefan Dösinger <stefan at codeweavers.com>
Date:   Tue Dec 18 14:02:20 2007 +0100

wined3d: Always dump the fbo state on errors.

---

 dlls/wined3d/device.c |   23 ++++++++++-------------
 1 files changed, 10 insertions(+), 13 deletions(-)

diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c
index 1793ed4..d5efe8b 100644
--- a/dlls/wined3d/device.c
+++ b/dlls/wined3d/device.c
@@ -6192,26 +6192,23 @@ static void check_fbo_status(IWineD3DDevice *iface) {
     if (status == GL_FRAMEBUFFER_COMPLETE_EXT) {
         TRACE("FBO complete\n");
     } else {
+        IWineD3DSurfaceImpl *attachment;
+        int i;
         FIXME("FBO status %s (%#x)\n", debug_fbostatus(status), status);
 
         /* Dump the FBO attachments */
-        if (status == GL_FRAMEBUFFER_UNSUPPORTED_EXT) {
-            IWineD3DSurfaceImpl *attachment;
-            int i;
-
-            for (i = 0; i < GL_LIMITS(buffers); ++i) {
-                attachment = (IWineD3DSurfaceImpl *)This->fbo_color_attachments[i];
-                if (attachment) {
-                    FIXME("\tColor attachment %d: (%p) %s %ux%u\n", i, attachment, debug_d3dformat(attachment->resource.format),
-                            attachment->pow2Width, attachment->pow2Height);
-                }
-            }
-            attachment = (IWineD3DSurfaceImpl *)This->fbo_depth_attachment;
+        for (i = 0; i < GL_LIMITS(buffers); ++i) {
+            attachment = (IWineD3DSurfaceImpl *)This->fbo_color_attachments[i];
             if (attachment) {
-                FIXME("\tDepth attachment: (%p) %s %ux%u\n", attachment, debug_d3dformat(attachment->resource.format),
+                FIXME("\tColor attachment %d: (%p) %s %ux%u\n", i, attachment, debug_d3dformat(attachment->resource.format),
                         attachment->pow2Width, attachment->pow2Height);
             }
         }
+        attachment = (IWineD3DSurfaceImpl *)This->fbo_depth_attachment;
+        if (attachment) {
+            FIXME("\tDepth attachment: (%p) %s %ux%u\n", attachment, debug_d3dformat(attachment->resource.format),
+                    attachment->pow2Width, attachment->pow2Height);
+        }
     }
 }
 




More information about the wine-cvs mailing list