From 30c1abb1eb80b47227e89223f0176023c1ba7fa4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20D=C3=B6singer?= Date: Tue, 18 Dec 2007 14:02:20 +0100 Subject: [PATCH] wined3d: Always dump the fbo state on errors. --- dlls/wined3d/device.c | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c index 1793ed448f4..d5efe8b69bf 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); + } } }