Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
7296c976
Commit
7296c976
authored
Feb 08, 2015
by
Hannes Domani
Committed by
Jean-Baptiste Kempf
Feb 08, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Direct3D9: release compile shader buffers
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
0cee6c30
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
modules/video_output/msw/direct3d9.c
modules/video_output/msw/direct3d9.c
+8
-1
No files found.
modules/video_output/msw/direct3d9.c
View file @
7296c976
...
@@ -1213,8 +1213,10 @@ static int Direct3D9CompileShader(vout_display_t *vd, const char *shader_source,
...
@@ -1213,8 +1213,10 @@ static int Direct3D9CompileShader(vout_display_t *vd, const char *shader_source,
if
(
FAILED
(
hr
))
{
if
(
FAILED
(
hr
))
{
msg_Warn
(
vd
,
"D3DXCompileShader Error (hr=0x%lX)"
,
hr
);
msg_Warn
(
vd
,
"D3DXCompileShader Error (hr=0x%lX)"
,
hr
);
if
(
error_msgs
)
if
(
error_msgs
)
{
msg_Warn
(
vd
,
"HLSL Compilation Error: %s"
,
(
char
*
)
ID3DXBuffer_GetBufferPointer
(
error_msgs
));
msg_Warn
(
vd
,
"HLSL Compilation Error: %s"
,
(
char
*
)
ID3DXBuffer_GetBufferPointer
(
error_msgs
));
ID3DXBuffer_Release
(
error_msgs
);
}
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
}
}
...
@@ -1222,6 +1224,11 @@ static int Direct3D9CompileShader(vout_display_t *vd, const char *shader_source,
...
@@ -1222,6 +1224,11 @@ static int Direct3D9CompileShader(vout_display_t *vd, const char *shader_source,
ID3DXBuffer_GetBufferPointer
(
compiled_shader
),
ID3DXBuffer_GetBufferPointer
(
compiled_shader
),
&
sys
->
d3dx_shader
);
&
sys
->
d3dx_shader
);
if
(
compiled_shader
)
ID3DXBuffer_Release
(
compiled_shader
);
if
(
error_msgs
)
ID3DXBuffer_Release
(
error_msgs
);
if
(
FAILED
(
hr
))
{
if
(
FAILED
(
hr
))
{
msg_Warn
(
vd
,
"IDirect3DDevice9_CreatePixelShader error (hr=0x%lX)"
,
hr
);
msg_Warn
(
vd
,
"IDirect3DDevice9_CreatePixelShader error (hr=0x%lX)"
,
hr
);
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
...
...
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