H. Verbeet : wined3d: Use WINED3DUSAGE rather than D3DUSAGE.

Alexandre Julliard julliard at wine.codeweavers.com
Thu Feb 15 05:27:56 CST 2007


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

Author: H. Verbeet <hverbeet at gmail.com>
Date:   Wed Feb 14 23:30:23 2007 +0100

wined3d: Use WINED3DUSAGE rather than D3DUSAGE.

---

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

diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c
index 7e6ef3e..7031b7a 100644
--- a/dlls/wined3d/device.c
+++ b/dlls/wined3d/device.c
@@ -358,13 +358,13 @@ static void CreateVBO(IWineD3DVertexBufferImpl *object) {
      * quite often even if they specify 0 usage. Because we always keep the local copy
      * we never read from the vbo and can create a write only opengl buffer.
      */
-    switch(vboUsage & (D3DUSAGE_WRITEONLY | D3DUSAGE_DYNAMIC) ) {
-        case D3DUSAGE_WRITEONLY | D3DUSAGE_DYNAMIC:
-        case D3DUSAGE_DYNAMIC:
+    switch(vboUsage & (WINED3DUSAGE_WRITEONLY | WINED3DUSAGE_DYNAMIC) ) {
+        case WINED3DUSAGE_WRITEONLY | WINED3DUSAGE_DYNAMIC:
+        case WINED3DUSAGE_DYNAMIC:
             TRACE("Gl usage = GL_STREAM_DRAW\n");
             glUsage = GL_STREAM_DRAW_ARB;
             break;
-        case D3DUSAGE_WRITEONLY:
+        case WINED3DUSAGE_WRITEONLY:
         default:
             TRACE("Gl usage = GL_DYNAMIC_DRAW\n");
             glUsage = GL_DYNAMIC_DRAW_ARB;




More information about the wine-cvs mailing list