From: Corbin Simpson Date: Sat, 24 Jan 2009 00:00:33 +0000 (-0800) Subject: amd: Fix missing break statement. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5f95f0538e5a354431cc3bbed662c4983e6d0614;p=mesa.git amd: Fix missing break statement. --- diff --git a/src/gallium/winsys/drm/amd/amd_screen.c b/src/gallium/winsys/drm/amd/amd_screen.c index 22d8973eb79..fcf8524525c 100644 --- a/src/gallium/winsys/drm/amd/amd_screen.c +++ b/src/gallium/winsys/drm/amd/amd_screen.c @@ -187,11 +187,12 @@ static boolean amd_buffer_create(__DRIscreenPrivate *dri_screen, } switch (visual->depthBits) { + case 24: + depth_format = PIPE_FORMAT_S8Z24_UNORM; + break; case 16: depth_format = PIPE_FORMAT_Z16_UNORM; break; - case 24: - depth_format = PIPE_FORMAT_S8Z24_UNORM; default: depth_format = PIPE_FORMAT_NONE; break;