Commit 3777ef3a authored by H. Verbeet's avatar H. Verbeet Committed by Alexandre Julliard

wined3d: Dump the FBO's attachments when its status is GL_FRAMEBUFFER_UNSUPPORTED_EXT.

parent c4cc10a5
...@@ -5191,9 +5191,29 @@ static void check_fbo_status(IWineD3DDevice *iface) { ...@@ -5191,9 +5191,29 @@ static void check_fbo_status(IWineD3DDevice *iface) {
GLenum status; GLenum status;
status = GL_EXTCALL(glCheckFramebufferStatusEXT(GL_FRAMEBUFFER_EXT)); status = GL_EXTCALL(glCheckFramebufferStatusEXT(GL_FRAMEBUFFER_EXT));
switch(status) { if (status == GL_FRAMEBUFFER_COMPLETE_EXT) {
case GL_FRAMEBUFFER_COMPLETE_EXT: TRACE("FBO complete.\n"); break; TRACE("FBO complete\n");
default: FIXME("FBO status %s (%#x)\n", debug_fbostatus(status), status); break; } else {
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;
if (attachment) {
FIXME("\tDepth attachment: (%p) %s %ux%u\n", attachment, debug_d3dformat(attachment->resource.format),
attachment->pow2Width, attachment->pow2Height);
}
}
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment