Stefan Dösinger : wined3d: Do not force dynamic usage on transformed buffers.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Jan 15 07:43:07 CST 2007


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

Author: Stefan Dösinger <stefan at codeweavers.com>
Date:   Fri Jan 12 19:02:36 2007 +0100

wined3d: Do not force dynamic usage on transformed buffers.

---

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

diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c
index 1845446..2097b13 100644
--- a/dlls/wined3d/device.c
+++ b/dlls/wined3d/device.c
@@ -450,17 +450,6 @@ static void CreateVBO(IWineD3DVertexBuff
         goto error;
     }
 
-    /* Transformed vertices are horribly inflexible. If the app specifies an
-      * vertex buffer with transformed vertices in default pool without DYNAMIC
-      * usage assume DYNAMIC usage and print a warning. The app will have to update
-      * the vertices regularily for them to be useful
-      */
-    if(((object->fvf & WINED3DFVF_POSITION_MASK) == WINED3DFVF_XYZRHW) &&
-        !(vboUsage & WINED3DUSAGE_DYNAMIC)) {
-        WARN("Application creates a vertex buffer holding transformed vertices which doesn't specify dynamic usage\n");
-        vboUsage |= WINED3DUSAGE_DYNAMIC;
-    }
-
     /* Don't use static, because dx apps tend to update the buffer
       * quite often even if they specify 0 usage
       */




More information about the wine-cvs mailing list