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.
This commit is contained in:
parent
47c5711fe2
commit
f65a1ed272
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue