=?UTF-8?Q?J=C3=B3zef=20Kucia=20?=: wined3d: Eliminate holes in wined3d_resource structure.

Alexandre Julliard julliard at winehq.org
Fri Apr 7 15:17:03 CDT 2017


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

Author: Józef Kucia <jkucia at codeweavers.com>
Date:   Fri Apr  7 14:45:14 2017 +0200

wined3d: Eliminate holes in wined3d_resource structure.

Signed-off-by: Józef Kucia <jkucia at codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/wined3d/wined3d_private.h | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/dlls/wined3d/wined3d_private.h b/dlls/wined3d/wined3d_private.h
index 8ce3363..1641390 100644
--- a/dlls/wined3d/wined3d_private.h
+++ b/dlls/wined3d/wined3d_private.h
@@ -2749,6 +2749,7 @@ struct wined3d_resource
     LONG ref;
     LONG bind_count;
     LONG map_count;
+    LONG access_count;
     struct wined3d_device *device;
     enum wined3d_resource_type type;
     enum wined3d_gl_resource_type gl_type;
@@ -2759,20 +2760,20 @@ struct wined3d_resource
     DWORD usage;
     enum wined3d_pool pool;
     DWORD access_flags;
-    DWORD draw_binding;
-    DWORD map_binding;
+    WORD draw_binding;
+    WORD map_binding;
     UINT width;
     UINT height;
     UINT depth;
     UINT size;
     DWORD priority;
     void *heap_memory;
-    struct list resource_list_entry;
-    LONG access_count;
 
     void *parent;
     const struct wined3d_parent_ops *parent_ops;
     const struct wined3d_resource_ops *resource_ops;
+
+    struct list resource_list_entry;
 };
 
 static inline ULONG wined3d_resource_incref(struct wined3d_resource *resource)




More information about the wine-cvs mailing list