Module: wine Branch: master Commit: 43d2515da566376e04e79152770354ef3d87a475 URL: http://source.winehq.org/git/wine.git/?a=commit;h=43d2515da566376e04e7915277...
Author: Henri Verbeet hverbeet@codeweavers.com Date: Sun Jul 24 21:48:08 2011 +0200
wined3d: Use the "rts" variable in context_apply_clear_state().
---
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) {