Henri Verbeet : wined3d: Use gl_info from the context in context_apply_clear_state().
Alexandre Julliard
julliard at winehq.org
Mon Jul 25 11:43:11 CDT 2011
Module: wine
Branch: master
Commit: e5036e365e7221f45d8f7fe79c9ddcc581b6a5c0
URL: http://source.winehq.org/git/wine.git/?a=commit;h=e5036e365e7221f45d8f7fe79c9ddcc581b6a5c0
Author: Henri Verbeet <hverbeet at codeweavers.com>
Date: Sun Jul 24 21:48:07 2011 +0200
wined3d: Use gl_info from the context in context_apply_clear_state().
---
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;
More information about the wine-cvs
mailing list