wined3d: Print an ERR instead of crashing in context_check_fbo_status().

Some version of Mesa will claim the window system provided framebuffer is
incomplete when using indirect rendering, although the framebuffer objects
spec says this can never happen. Printing an ERR instead of crashing should
make it clearer that this isn't a wined3d problem.
This commit is contained in:
Henri Verbeet 2009-10-26 10:12:19 +01:00 committed by Alexandre Julliard
parent d03a105c1a
commit 483d5d0a0d
1 changed files with 6 additions and 0 deletions

View File

@ -288,6 +288,12 @@ static void context_check_fbo_status(struct wined3d_context *context)
unsigned int i;
FIXME("FBO status %s (%#x)\n", debug_fbostatus(status), status);
if (!context->current_fbo)
{
ERR("FBO 0 is incomplete, driver bug?\n");
return;
}
/* Dump the FBO attachments */
for (i = 0; i < gl_info->max_buffers; ++i)
{