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
c765ee0b
Commit
c765ee0b
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: pass dimensions of the D3D region to the pixel shader
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
c11fd844
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
modules/video_output/msw/direct3d.c
modules/video_output/msw/direct3d.c
+8
-0
No files found.
modules/video_output/msw/direct3d.c
View file @
c765ee0b
...
...
@@ -1559,7 +1559,15 @@ static int Direct3DRenderRegion(vout_display_t *vd,
if
(
sys
->
d3dx_shader
)
{
if
(
use_pixel_shader
)
{
hr
=
IDirect3DDevice9_SetPixelShader
(
d3ddev
,
sys
->
d3dx_shader
);
float
shader_data
[
4
]
=
{
region
->
width
,
region
->
height
,
0
,
0
};
hr
=
IDirect3DDevice9_SetPixelShaderConstantF
(
d3ddev
,
0
,
shader_data
,
1
);
if
(
FAILED
(
hr
))
{
msg_Dbg
(
vd
,
"%s:%d (hr=0x%0lX)"
,
__FUNCTION__
,
__LINE__
,
hr
);
return
-
1
;
}
}
else
/* Disable any existing pixel shader. */
hr
=
IDirect3DDevice9_SetPixelShader
(
d3ddev
,
NULL
);
if
(
FAILED
(
hr
))
{
...
...
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