mirror of
https://github.com/mpv-player/mpv.git
synced 2026-10-26 04:59:30 +08:00
gl_video: minor simplification
Not needed anymore.
This commit is contained in:
committed by
Diogo Franco (Kovensky)
parent
c6ce2c6b43
commit
6cf54d6bc0
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user