mesa: fix unintended fallthrough in glIsEnabled()
authorTimothy Arceri <tarceri@itsqueeze.com>
Wed, 1 Jul 2020 06:20:17 +0000 (16:20 +1000)
committerMarge Bot <eric+marge@anholt.net>
Thu, 2 Jul 2020 23:52:53 +0000 (23:52 +0000)
Fixes: 08fae07f5246 ("mesa: Handle GL_TEXTURE_GEN_STR_OES in _mesa_Enable()")
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5705>

src/mesa/main/enable.c

index 8d33b71df75bce48c701cb8be58e94121e35b62b..1d83ba04f78682ebd3579bcfd52e6b427a8cd050 100644 (file)
@@ -1727,6 +1727,8 @@ _mesa_IsEnabled( GLenum cap )
                return (texUnit->TexGenEnabled & STR_BITS) == STR_BITS
                   ? GL_TRUE : GL_FALSE;
             }
+
+            return GL_FALSE;
          }
 
       /* client-side state */