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
ed673d83
Commit
ed673d83
authored
Feb 13, 2014
by
Felix Abecassis
Committed by
Jean-Baptiste Kempf
Feb 13, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Direct3D: do not use pixel shader when rendering subpictures
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
394cb992
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
modules/video_output/msw/direct3d.c
modules/video_output/msw/direct3d.c
+8
-4
No files found.
modules/video_output/msw/direct3d.c
View file @
ed673d83
...
...
@@ -1519,7 +1519,8 @@ static void Direct3DImportSubpicture(vout_display_t *vd,
}
static
int
Direct3DRenderRegion
(
vout_display_t
*
vd
,
d3d_region_t
*
region
)
d3d_region_t
*
region
,
bool
use_pixel_shader
)
{
vout_display_sys_t
*
sys
=
vd
->
sys
;
...
...
@@ -1555,7 +1556,10 @@ static int Direct3DRenderRegion(vout_display_t *vd,
}
if
(
sys
->
d3dx_shader
)
{
hr
=
IDirect3DDevice9_SetPixelShader
(
d3ddev
,
sys
->
d3dx_shader
);
if
(
use_pixel_shader
)
hr
=
IDirect3DDevice9_SetPixelShader
(
d3ddev
,
sys
->
d3dx_shader
);
else
/* Disable any existing pixel shader. */
hr
=
IDirect3DDevice9_SetPixelShader
(
d3ddev
,
NULL
);
if
(
FAILED
(
hr
))
{
msg_Dbg
(
vd
,
"%s:%d (hr=0x%0lX)"
,
__FUNCTION__
,
__LINE__
,
hr
);
return
-
1
;
...
...
@@ -1618,14 +1622,14 @@ static void Direct3DRenderScene(vout_display_t *vd,
return
;
}
Direct3DRenderRegion
(
vd
,
picture
);
Direct3DRenderRegion
(
vd
,
picture
,
true
);
if
(
subpicture_count
>
0
)
IDirect3DDevice9_SetRenderState
(
d3ddev
,
D3DRS_ALPHABLENDENABLE
,
TRUE
);
for
(
int
i
=
0
;
i
<
subpicture_count
;
i
++
)
{
d3d_region_t
*
r
=
&
subpicture
[
i
];
if
(
r
->
texture
)
Direct3DRenderRegion
(
vd
,
r
);
Direct3DRenderRegion
(
vd
,
r
,
false
);
}
if
(
subpicture_count
>
0
)
IDirect3DDevice9_SetRenderState
(
d3ddev
,
D3DRS_ALPHABLENDENABLE
,
FALSE
);
...
...
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