amd: Fix missing break statement.
authorCorbin Simpson <MostAwesomeDude@gmail.com>
Sat, 24 Jan 2009 00:00:33 +0000 (16:00 -0800)
committerCorbin Simpson <MostAwesomeDude@gmail.com>
Mon, 2 Feb 2009 07:30:26 +0000 (23:30 -0800)
src/gallium/winsys/drm/amd/amd_screen.c

index 22d8973eb7942c2499f61887ddd8e66154ee7375..fcf8524525c934aa0ba382f7c7efd6fc6041f9b8 100644 (file)
@@ -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;