[PATCH 1/5] wined3d: Use gl_info from the context in context_apply_clear_state().
Henri Verbeet
hverbeet at codeweavers.com
Sun Jul 24 14:48:07 CDT 2011
---
dlls/wined3d/context.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/wined3d/context.c b/dlls/wined3d/context.c
index 3d17691..856ba38 100644
--- a/dlls/wined3d/context.c
+++ b/dlls/wined3d/context.c
@@ -2074,7 +2074,7 @@ BOOL context_apply_clear_state(struct wined3d_context *context, struct wined3d_d
struct wined3d_surface **rts = fb->render_targets;
if (isStateDirty(context, STATE_FRAMEBUFFER) || fb != &device->fb
- || rt_count != device->adapter->gl_info.limits.buffers)
+ || rt_count != context->gl_info->limits.buffers)
{
if (!context_validate_rt_config(rt_count, fb->render_targets, fb->depth_stencil))
return FALSE;
--
1.7.3.4
More information about the wine-patches
mailing list