summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-11-27 19:48:15 +0100
committerDiogo Franco (Kovensky) <diogomfranco@gmail.com>2015-01-25 17:00:12 +0900
commit6cf54d6bc0e7fbd1328ea8b511b7efe05f6d0939 (patch)
treef1bcf5184c8fe1419c0ab0d45ebcb43bc49d212b
parentc6ce2c6b43ea0ef409a4cdc41d24b5cb336024d5 (diff)
downloadmpv-6cf54d6bc0e7fbd1328ea8b511b7efe05f6d0939.tar.bz2
mpv-6cf54d6bc0e7fbd1328ea8b511b7efe05f6d0939.tar.xz
gl_video: minor simplification
Not needed anymore.
-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 44445575fa..5acf3bf425 100644
--- a/video/out/gl_video.c
+++ b/video/out/gl_video.c
@@ -2215,10 +2215,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;