Henri Verbeet : wined3d: Only invalidate state for the current context in wined3d_device_set_cursor_properties ().

Alexandre Julliard julliard at winehq.org
Thu Jul 28 13:55:40 CDT 2011


Module: wine
Branch: master
Commit: cc2dc5b0c8dcaa17e6900fa7a6e4ebcac821d6c0
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=cc2dc5b0c8dcaa17e6900fa7a6e4ebcac821d6c0

Author: Henri Verbeet <hverbeet at codeweavers.com>
Date:   Wed Jul 27 21:13:36 2011 +0200

wined3d: Only invalidate state for the current context in wined3d_device_set_cursor_properties().

---

 dlls/wined3d/device.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c
index e3e6848..16327e4 100644
--- a/dlls/wined3d/device.c
+++ b/dlls/wined3d/device.c
@@ -5263,7 +5263,7 @@ HRESULT CDECL wined3d_device_set_cursor_properties(struct wined3d_device *device
             checkGLcall("glActiveTextureARB");
             sampler = device->rev_tex_unit_map[0];
             if (sampler != WINED3D_UNMAPPED_STAGE)
-                device_invalidate_state(device, STATE_SAMPLER(sampler));
+                context_invalidate_state(context, STATE_SAMPLER(sampler));
             /* Create a new cursor texture */
             glGenTextures(1, &device->cursorTexture);
             checkGLcall("glGenTextures");




More information about the wine-cvs mailing list