summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
Diffstat (limited to 'video')
-rw-r--r--video/out/gl_video.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/video/out/gl_video.c b/video/out/gl_video.c
index 908442ad3d..56bdf78b57 100644
--- a/video/out/gl_video.c
+++ b/video/out/gl_video.c
@@ -2212,10 +2212,6 @@ static const struct fmt_entry *find_tex_format(int bytes_per_comp, int n_channel
static bool init_format(int fmt, struct gl_video *init)
{
- struct gl_video dummy;
- if (!init)
- init = &dummy;
-
init->hwdec_active = false;
if (init->hwdec && init->hwdec->driver->imgfmt == fmt) {
fmt = init->hwdec->converted_imgfmt;