diff options
author | wm4 <wm4@nowhere> | 2016-11-23 16:01:28 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-11-23 16:02:28 +0100 |
commit | f696975fe371a0c98cdcaa20bce33b55b48f5c37 (patch) | |
tree | 5f5af972abee0e3b6a1b2ff8b0d42102348159f1 /video/out/opengl | |
parent | 79d99bd264d53aac2fe7a3c07cf36b3710a5b726 (diff) | |
download | mpv-f696975fe371a0c98cdcaa20bce33b55b48f5c37.tar.bz2 mpv-f696975fe371a0c98cdcaa20bce33b55b48f5c37.tar.xz |
angle_dynamic: minor simplification
Remove the inverted condition by swapping if branches.
Diffstat (limited to 'video/out/opengl')
-rw-r--r-- | video/out/opengl/angle_dynamic.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/video/out/opengl/angle_dynamic.c b/video/out/opengl/angle_dynamic.c index 3c5a9ba036..872b9f3001 100644 --- a/video/out/opengl/angle_dynamic.c +++ b/video/out/opengl/angle_dynamic.c @@ -29,10 +29,10 @@ static void angle_do_load(void) bool angle_load(void) { -#if !HAVE_EGL_ANGLE_LIB +#if HAVE_EGL_ANGLE_LIB + return true; +#else pthread_once(&angle_load_once, angle_do_load); return angle_loaded; -#else - return true; #endif } |