[client] render/opengl: remove braces so fallthrough comment is recognized

gcc -Wimplicit-fallthrough only detects comments if they are immediately
preceded before the next label. Braces stops it from recognizing the
fallthrough comment.
This commit is contained in:
Quantum 2021-01-14 03:45:29 -05:00 committed by Geoffrey McRae
parent 5f20ee46a8
commit 369c49cdcf

View File

@ -1109,7 +1109,6 @@ static void update_mouse_shape(struct Inst * this, bool * newShape)
switch(cursor)
{
case LG_CURSOR_MASKED_COLOR:
{
for(int i = 0; i < width * height; ++i)
{
const uint32_t c = ((uint32_t *)data)[i];
@ -1120,7 +1119,6 @@ static void update_mouse_shape(struct Inst * this, bool * newShape)
//
// technically we should also create an XOR texture from the data but this
// usage seems very rare in modern software.
}
case LG_CURSOR_COLOR:
{