Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
6e559fbd
Commit
6e559fbd
authored
Apr 11, 2011
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Store D3DCAPS9 inside vout_display_sys_t (direct3d).
parent
8f6f7a2e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
modules/video_output/msw/common.h
modules/video_output/msw/common.h
+1
-0
modules/video_output/msw/direct3d.c
modules/video_output/msw/direct3d.c
+3
-3
No files found.
modules/video_output/msw/common.h
View file @
6e559fbd
...
...
@@ -176,6 +176,7 @@ struct vout_display_sys_t
// core objects
HINSTANCE
hd3d9_dll
;
/* handle of the opened d3d9 dll */
LPDIRECT3D9
d3dobj
;
D3DCAPS9
d3dcaps
;
LPDIRECT3DDEVICE9
d3ddev
;
D3DPRESENT_PARAMETERS
d3dpp
;
// scene objects
...
...
modules/video_output/msw/direct3d.c
View file @
6e559fbd
...
...
@@ -464,13 +464,13 @@ static int Direct3DCreate(vout_display_t *vd)
/*
** Get device capabilities
*/
D3DCAPS9
d3dCaps
;
ZeroMemory
(
&
d3dCaps
,
sizeof
(
d3dCaps
));
HRESULT
hr
=
IDirect3D9_GetDeviceCaps
(
d3dobj
,
D3DADAPTER_DEFAULT
,
D3DDEVTYPE_HAL
,
&
d3dCaps
);
ZeroMemory
(
&
sys
->
d3dcaps
,
sizeof
(
sys
->
d3dcaps
));
HRESULT
hr
=
IDirect3D9_GetDeviceCaps
(
d3dobj
,
D3DADAPTER_DEFAULT
,
D3DDEVTYPE_HAL
,
&
sys
->
d3dcaps
);
if
(
FAILED
(
hr
))
{
msg_Err
(
vd
,
"Could not read adapter capabilities. (hr=0x%lX)"
,
hr
);
return
VLC_EGENERIC
;
}
/* TODO: need to test device capabilities and select the right render function */
return
VLC_SUCCESS
;
...
...
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