Commit fa1d7002 authored by Steve Lhomme's avatar Steve Lhomme Committed by Hugo Beauzée-Luyssen

direct3d11: pass some variables as const

Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
(cherry picked from commit 7be22caa)
Signed-off-by: default avatarHugo Beauzée-Luyssen <hugo@beauzee.fr>
parent bb6e2fce
...@@ -219,7 +219,7 @@ static int Direct3D11Open (vout_display_t *); ...@@ -219,7 +219,7 @@ static int Direct3D11Open (vout_display_t *);
static void Direct3D11Close(vout_display_t *); static void Direct3D11Close(vout_display_t *);
static int SetupOutputFormat(vout_display_t *, video_format_t *); static int SetupOutputFormat(vout_display_t *, video_format_t *);
static int Direct3D11CreateFormatResources (vout_display_t *, video_format_t *); static int Direct3D11CreateFormatResources (vout_display_t *, const video_format_t *);
static int Direct3D11CreateGenericResources(vout_display_t *); static int Direct3D11CreateGenericResources(vout_display_t *);
static void Direct3D11DestroyResources(vout_display_t *); static void Direct3D11DestroyResources(vout_display_t *);
...@@ -1952,7 +1952,7 @@ static bool CanUseTextureArray(vout_display_t *vd) ...@@ -1952,7 +1952,7 @@ static bool CanUseTextureArray(vout_display_t *vd)
/* TODO : handle errors better /* TODO : handle errors better
TODO : seperate out into smaller functions like createshaders */ TODO : seperate out into smaller functions like createshaders */
static int Direct3D11CreateFormatResources(vout_display_t *vd, video_format_t *fmt) static int Direct3D11CreateFormatResources(vout_display_t *vd, const video_format_t *fmt)
{ {
vout_display_sys_t *sys = vd->sys; vout_display_sys_t *sys = vd->sys;
HRESULT hr; HRESULT hr;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment