Henri Verbeet : wined3d: Do not validate format restrictions for buffers.

Alexandre Julliard julliard at wine.codeweavers.com
Wed Feb 11 10:28:10 CST 2015


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

Author: Henri Verbeet <hverbeet at codeweavers.com>
Date:   Wed Feb 11 14:10:15 2015 +0100

wined3d: Do not validate format restrictions for buffers.

Buffers don't have a format as such, and are created with either
WINED3DFMT_UNKNOWN or WINED3DFMT_VERTEXDATA.

---

 dlls/wined3d/resource.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/wined3d/resource.c b/dlls/wined3d/resource.c
index f4134e2..205f074 100644
--- a/dlls/wined3d/resource.c
+++ b/dlls/wined3d/resource.c
@@ -81,7 +81,7 @@ HRESULT resource_init(struct wined3d_resource *resource, struct wined3d_device *
     const struct wined3d *d3d = device->wined3d;
 
     resource_check_usage(usage);
-    if (pool != WINED3D_POOL_SCRATCH)
+    if (pool != WINED3D_POOL_SCRATCH && type != WINED3D_RTYPE_BUFFER)
     {
         if ((usage & WINED3DUSAGE_RENDERTARGET) && !(format->flags & WINED3DFMT_FLAG_RENDERTARGET))
         {




More information about the wine-cvs mailing list