wined3d: Bind the system framebuffer based on the actual location in context_apply_fbo_state().

We can do this now because SFLAG_INDRAWABLE is no longer ambiguous.
oldstable
Henri Verbeet 2011-08-24 22:08:47 +02:00 committed by Alexandre Julliard
parent 47c5711fe2
commit f65a1ed272
1 changed files with 6 additions and 6 deletions

View File

@ -415,16 +415,16 @@ static void context_apply_fbo_state(struct wined3d_context *context, GLenum targ
context->rebind_fbo = FALSE;
}
if (render_targets)
{
context->current_fbo = context_find_fbo_entry(context, target, render_targets, depth_stencil, location);
context_apply_fbo_entry(context, target, context->current_fbo);
}
else
if (location == SFLAG_INDRAWABLE)
{
context->current_fbo = NULL;
context_bind_fbo(context, target, NULL);
}
else
{
context->current_fbo = context_find_fbo_entry(context, target, render_targets, depth_stencil, location);
context_apply_fbo_entry(context, target, context->current_fbo);
}
}
/* GL locking is done by the caller */