Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
32be179a
Commit
32be179a
authored
May 11, 2020
by
Zebediah Figura
Committed by
Alexandre Julliard
May 12, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz/vmr9: Check for D3DDEVCAPS2_CAN_STRETCHRECT_FROM_TEXTURES.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
fa32c8e3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletion
+14
-1
vmr9.c
dlls/quartz/vmr9.c
+14
-1
No files found.
dlls/quartz/vmr9.c
View file @
32be179a
...
...
@@ -2551,7 +2551,9 @@ static UINT d3d9_adapter_from_hwnd(IDirect3D9 *d3d9, HWND hwnd, HMONITOR *mon_ou
static
BOOL
CreateRenderingWindow
(
struct
default_presenter
*
This
,
VMR9AllocationInfo
*
info
,
DWORD
*
numbuffers
)
{
D3DPRESENT_PARAMETERS
d3dpp
;
IDirect3DDevice9
*
device
;
DWORD
d3d9_adapter
;
D3DCAPS9
caps
;
HWND
window
;
HRESULT
hr
;
...
...
@@ -2573,12 +2575,23 @@ static BOOL CreateRenderingWindow(struct default_presenter *This, VMR9Allocation
d3dpp
.
BackBufferWidth
=
info
->
dwWidth
;
d3dpp
.
BackBufferHeight
=
info
->
dwHeight
;
hr
=
IDirect3D9_CreateDevice
(
This
->
d3d9_ptr
,
d3d9_adapter
,
D3DDEVTYPE_HAL
,
NULL
,
D3DCREATE_MIXED_VERTEXPROCESSING
,
&
d3dpp
,
&
This
->
d3d9_dev
);
hr
=
IDirect3D9_CreateDevice
(
This
->
d3d9_ptr
,
d3d9_adapter
,
D3DDEVTYPE_HAL
,
NULL
,
D3DCREATE_MIXED_VERTEXPROCESSING
,
&
d3dpp
,
&
device
);
if
(
FAILED
(
hr
))
{
ERR
(
"Could not create device: %08x
\n
"
,
hr
);
return
FALSE
;
}
IDirect3DDevice9_GetDeviceCaps
(
device
,
&
caps
);
if
(
!
(
caps
.
DevCaps2
&
D3DDEVCAPS2_CAN_STRETCHRECT_FROM_TEXTURES
))
{
WARN
(
"Device does not support blitting from textures.
\n
"
);
IDirect3DDevice9_Release
(
device
);
return
FALSE
;
}
This
->
d3d9_dev
=
device
;
IVMRSurfaceAllocatorNotify9_SetD3DDevice
(
This
->
SurfaceAllocatorNotify
,
This
->
d3d9_dev
,
This
->
hMon
);
if
(
!
(
This
->
d3d9_surfaces
=
calloc
(
*
numbuffers
,
sizeof
(
IDirect3DSurface9
*
))))
...
...
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