diff options
author | Kacper Michajłow <kasper93@gmail.com> | 2023-01-29 13:28:08 +0100 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2023-02-02 14:23:02 +0000 |
commit | 0a4b139ddf2d24d18cc70f779fa7022ca6b601b6 (patch) | |
tree | 8e3bb643841dc570e4415f856cd704d97cb6e3ee /video/out | |
parent | 08cd7c1e290083caf2707cae3b13f733c4e6b290 (diff) | |
download | mpv-0a4b139ddf2d24d18cc70f779fa7022ca6b601b6.tar.bz2 mpv-0a4b139ddf2d24d18cc70f779fa7022ca6b601b6.tar.xz |
osdep: add MP_FALLTHROUGH
Diffstat (limited to 'video/out')
-rw-r--r-- | video/out/gpu/shader_cache.c | 2 | ||||
-rw-r--r-- | video/out/opengl/context.c | 2 | ||||
-rw-r--r-- | video/out/vo_gpu_next.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/video/out/gpu/shader_cache.c b/video/out/gpu/shader_cache.c index 302508b543..9eedb1cd07 100644 --- a/video/out/gpu/shader_cache.c +++ b/video/out/gpu/shader_cache.c @@ -699,7 +699,7 @@ static void add_uniforms(struct gl_shader_cache *sc, bstr *dst) case RA_VARTYPE_INT: case RA_VARTYPE_FLOAT: assert(sc->ra->caps & RA_CAP_GLOBAL_UNIFORM); - // fall through + MP_FALLTHROUGH; case RA_VARTYPE_TEX: // Vulkan requires explicitly assigning the bindings in the shader // source. For OpenGL it's optional, but requires higher GL version diff --git a/video/out/opengl/context.c b/video/out/opengl/context.c index 377b678cde..5ec1e487a9 100644 --- a/video/out/opengl/context.c +++ b/video/out/opengl/context.c @@ -261,7 +261,7 @@ bool ra_gl_ctx_submit_frame(struct ra_swapchain *sw, const struct vo_frame *fram case FLUSH_AUTO: if (frame->display_synced) break; - // fall through + MP_FALLTHROUGH; case FLUSH_YES: gl->Flush(); } diff --git a/video/out/vo_gpu_next.c b/video/out/vo_gpu_next.c index 8cb05d7704..f18ab3d9a4 100644 --- a/video/out/vo_gpu_next.c +++ b/video/out/vo_gpu_next.c @@ -1859,7 +1859,7 @@ static void update_render_options(struct vo *vo) #else MP_ERR(p, "Error diffusion dithering is not implemented.\n"); #endif - // fall through + MP_FALLTHROUGH; case DITHER_ORDERED: case DITHER_FRUIT: p->params.dither_params = &p->dither; |