Zebediah Figura : quartz/vmr9: Create textures with D3DUSAGE_DYNAMIC.

Alexandre Julliard julliard at winehq.org
Fri Mar 20 17:08:20 CDT 2020


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

Author: Zebediah Figura <z.figura12 at gmail.com>
Date:   Thu Mar 19 18:50:55 2020 -0500

quartz/vmr9: Create textures with D3DUSAGE_DYNAMIC.

Signed-off-by: Zebediah Figura <zfigura at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/quartz/tests/vmr9.c | 2 +-
 dlls/quartz/vmr9.c       | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/quartz/tests/vmr9.c b/dlls/quartz/tests/vmr9.c
index 45898db111..1194fd8d17 100644
--- a/dlls/quartz/tests/vmr9.c
+++ b/dlls/quartz/tests/vmr9.c
@@ -2508,7 +2508,7 @@ static void test_allocate_surface_helper(void)
     ok(hr == D3D_OK, "Got hr %#x.\n", hr);
     ok(desc.Format == info.Format, "Got format %#x.\n", desc.Format);
     ok(desc.Type == D3DRTYPE_SURFACE, "Got type %u.\n", desc.Type);
-    todo_wine ok(desc.Usage == D3DUSAGE_DYNAMIC, "Got usage %#x.\n", desc.Usage);
+    ok(desc.Usage == D3DUSAGE_DYNAMIC, "Got usage %#x.\n", desc.Usage);
     ok(desc.Pool == D3DPOOL_DEFAULT, "Got pool %u.\n", desc.Pool);
     ok(desc.MultiSampleType == D3DMULTISAMPLE_NONE, "Got multisample type %u.\n", desc.MultiSampleType);
     ok(!desc.MultiSampleQuality, "Got multisample quality %u.\n", desc.MultiSampleQuality);
diff --git a/dlls/quartz/vmr9.c b/dlls/quartz/vmr9.c
index 0aa861c3a6..b2217547cd 100644
--- a/dlls/quartz/vmr9.c
+++ b/dlls/quartz/vmr9.c
@@ -2138,7 +2138,7 @@ static HRESULT WINAPI VMR9SurfaceAllocatorNotify_AllocateSurfaceHelper(IVMRSurfa
         {
             IDirect3DTexture9 *texture;
 
-            hr = IDirect3DDevice9_CreateTexture(This->allocator_d3d9_dev, allocinfo->dwWidth, allocinfo->dwHeight, 1, 0,
+            hr = IDirect3DDevice9_CreateTexture(This->allocator_d3d9_dev, allocinfo->dwWidth, allocinfo->dwHeight, 1, D3DUSAGE_DYNAMIC,
                                                 allocinfo->Format, allocinfo->Pool, &texture, NULL);
             if (FAILED(hr))
                 break;




More information about the wine-cvs mailing list