wined3d: Always dump the fbo state on errors.
This commit is contained in:
parent
78718a41c7
commit
30c1abb1eb
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue