Henri Verbeet : wined3d: Place the cursor texture in the default pool.

Alexandre Julliard julliard at winehq.org
Fri Jan 10 13:22:45 CST 2014


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

Author: Henri Verbeet <hverbeet at codeweavers.com>
Date:   Fri Jan 10 10:43:02 2014 +0100

wined3d: Place the cursor texture in the default pool.

---

 dlls/wined3d/device.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c
index 925f879..40790c1 100644
--- a/dlls/wined3d/device.c
+++ b/dlls/wined3d/device.c
@@ -3809,8 +3809,8 @@ static struct wined3d_texture *wined3d_device_create_cursor_texture(struct wined
     desc.format = WINED3DFMT_B8G8R8A8_UNORM;
     desc.multisample_type = WINED3D_MULTISAMPLE_NONE;
     desc.multisample_quality = 0;
-    desc.usage = 0;
-    desc.pool = WINED3D_POOL_SYSTEM_MEM;
+    desc.usage = WINED3DUSAGE_DYNAMIC;
+    desc.pool = WINED3D_POOL_DEFAULT;
     desc.width = cursor_image->resource.width;
     desc.height = cursor_image->resource.height;
     desc.depth = 1;
@@ -3825,7 +3825,7 @@ static struct wined3d_texture *wined3d_device_create_cursor_texture(struct wined
     }
 
     surface = surface_from_resource(wined3d_texture_get_sub_resource(texture, 0));
-    if (FAILED(wined3d_surface_map(surface, &map_desc, NULL, 0)))
+    if (FAILED(wined3d_surface_map(surface, &map_desc, NULL, WINED3D_MAP_DISCARD)))
     {
         ERR("Failed to map destination surface.\n");
         wined3d_texture_decref(texture);




More information about the wine-cvs mailing list