Skip to content

Commit

Permalink
quartz/vmr9: Create textures with D3DUSAGE_DYNAMIC.
Browse files Browse the repository at this point in the history
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
  • Loading branch information
zfigura authored and julliard committed Mar 20, 2020
1 parent 9920733 commit ef23e61
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dlls/quartz/tests/vmr9.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion dlls/quartz/vmr9.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ef23e61

Please sign in to comment.