[PATCH 2/5] wined3d: Use the "rts" variable in context_apply_clear_state().
Henri Verbeet
hverbeet at codeweavers.com
Sun Jul 24 14:48:08 CDT 2011
---
dlls/wined3d/context.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/dlls/wined3d/context.c b/dlls/wined3d/context.c
index 856ba38..d7a58a9 100644
--- a/dlls/wined3d/context.c
+++ b/dlls/wined3d/context.c
@@ -2076,7 +2076,7 @@ BOOL context_apply_clear_state(struct wined3d_context *context, struct wined3d_d
if (isStateDirty(context, STATE_FRAMEBUFFER) || fb != &device->fb
|| rt_count != context->gl_info->limits.buffers)
{
- if (!context_validate_rt_config(rt_count, fb->render_targets, fb->depth_stencil))
+ if (!context_validate_rt_config(rt_count, rts, fb->depth_stencil))
return FALSE;
if (wined3d_settings.offscreen_rendering_mode == ORM_FBO)
@@ -2085,7 +2085,7 @@ BOOL context_apply_clear_state(struct wined3d_context *context, struct wined3d_d
ENTER_GL();
- if (!rt_count || surface_is_offscreen(fb->render_targets[0]))
+ if (!rt_count || surface_is_offscreen(rts[0]))
{
for (i = 0; i < rt_count; ++i)
{
@@ -2105,7 +2105,7 @@ BOOL context_apply_clear_state(struct wined3d_context *context, struct wined3d_d
else
{
context_apply_fbo_state(context, GL_FRAMEBUFFER, NULL, NULL, SFLAG_INDRAWABLE);
- rt_mask = context_generate_rt_mask_from_surface(fb->render_targets[0]);
+ rt_mask = context_generate_rt_mask_from_surface(rts[0]);
}
LEAVE_GL();
@@ -2121,7 +2121,7 @@ BOOL context_apply_clear_state(struct wined3d_context *context, struct wined3d_d
}
}
else if (wined3d_settings.offscreen_rendering_mode == ORM_FBO
- && (!rt_count || surface_is_offscreen(fb->render_targets[0])))
+ && (!rt_count || surface_is_offscreen(rts[0])))
{
for (i = 0; i < rt_count; ++i)
{
--
1.7.3.4
More information about the wine-patches
mailing list