Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
ef23e618
Commit
ef23e618
authored
Mar 19, 2020
by
Zebediah Figura
Committed by
Alexandre Julliard
Mar 20, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz/vmr9: Create textures with D3DUSAGE_DYNAMIC.
Signed-off-by:
Zebediah Figura
<
zfigura@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
99207332
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
vmr9.c
dlls/quartz/tests/vmr9.c
+1
-1
vmr9.c
dlls/quartz/vmr9.c
+1
-1
No files found.
dlls/quartz/tests/vmr9.c
View file @
ef23e618
...
@@ -2508,7 +2508,7 @@ static void test_allocate_surface_helper(void)
...
@@ -2508,7 +2508,7 @@ static void test_allocate_surface_helper(void)
ok
(
hr
==
D3D_OK
,
"Got hr %#x.
\n
"
,
hr
);
ok
(
hr
==
D3D_OK
,
"Got hr %#x.
\n
"
,
hr
);
ok
(
desc
.
Format
==
info
.
Format
,
"Got format %#x.
\n
"
,
desc
.
Format
);
ok
(
desc
.
Format
==
info
.
Format
,
"Got format %#x.
\n
"
,
desc
.
Format
);
ok
(
desc
.
Type
==
D3DRTYPE_SURFACE
,
"Got type %u.
\n
"
,
desc
.
Type
);
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
.
Pool
==
D3DPOOL_DEFAULT
,
"Got pool %u.
\n
"
,
desc
.
Pool
);
ok
(
desc
.
MultiSampleType
==
D3DMULTISAMPLE_NONE
,
"Got multisample type %u.
\n
"
,
desc
.
MultiSampleType
);
ok
(
desc
.
MultiSampleType
==
D3DMULTISAMPLE_NONE
,
"Got multisample type %u.
\n
"
,
desc
.
MultiSampleType
);
ok
(
!
desc
.
MultiSampleQuality
,
"Got multisample quality %u.
\n
"
,
desc
.
MultiSampleQuality
);
ok
(
!
desc
.
MultiSampleQuality
,
"Got multisample quality %u.
\n
"
,
desc
.
MultiSampleQuality
);
...
...
dlls/quartz/vmr9.c
View file @
ef23e618
...
@@ -2138,7 +2138,7 @@ static HRESULT WINAPI VMR9SurfaceAllocatorNotify_AllocateSurfaceHelper(IVMRSurfa
...
@@ -2138,7 +2138,7 @@ static HRESULT WINAPI VMR9SurfaceAllocatorNotify_AllocateSurfaceHelper(IVMRSurfa
{
{
IDirect3DTexture9
*
texture
;
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
);
allocinfo
->
Format
,
allocinfo
->
Pool
,
&
texture
,
NULL
);
if
(
FAILED
(
hr
))
if
(
FAILED
(
hr
))
break
;
break
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment