From 8cc8e80eaec20c76b99333c7637adc683f24e860 Mon Sep 17 00:00:00 2001 From: Kp Date: Sun, 4 Apr 2021 22:01:25 +0000 Subject: [PATCH] Fix VR build failure due to implicit fallthrough The fallthrough appears to be intentional. Add an annotation to allow it. Fixes: 6bc0e822d2cad952410696db37435ab1b0a4b758 ("Handle HUD overlays in separate screen rects for stereo renderings.") --- similar/arch/ogl/ogl.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/similar/arch/ogl/ogl.cpp b/similar/arch/ogl/ogl.cpp index c066f2395..fde444b25 100644 --- a/similar/arch/ogl/ogl.cpp +++ b/similar/arch/ogl/ogl.cpp @@ -1324,6 +1324,7 @@ void ogl_stereo_frame(int xeye, int xoff) // center unsqueezed side-by-side format case STEREO_SIDE_BY_SIDE2: ogl_stereo_viewport[1] -= ogl_stereo_viewport[3]/2; // y = h/4 + DXX_BOOST_FALLTHROUGH; // half-width viewports for side-by-side format case STEREO_SIDE_BY_SIDE: ogl_stereo_viewport[0] += ogl_stereo_viewport[2]; // x = w/2