mesa: Add missing break statement in _mesa_choose_tex_format.
authorVinson Lee <vlee@freedesktop.org>
Tue, 28 May 2013 00:54:35 +0000 (17:54 -0700)
committerVinson Lee <vlee@freedesktop.org>
Fri, 31 May 2013 06:12:32 +0000 (23:12 -0700)
Fixes "Missing break in switch" defect reported by Coverity.

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/main/texformat.c

index fda5d74c1fefb68569302085f7d691c7591592a4..0ae79ea7d08986547d42dbcf7c970fcfc38d4239 100644 (file)
@@ -218,6 +218,7 @@ _mesa_choose_tex_format(struct gl_context *ctx, GLenum target,
       RETURN_IF_SUPPORTED(MESA_FORMAT_Z16);
       RETURN_IF_SUPPORTED(MESA_FORMAT_X8_Z24);
       RETURN_IF_SUPPORTED(MESA_FORMAT_S8_Z24);
+      break;
 
  case GL_COMPRESSED_ALPHA_ARB:
     RETURN_IF_SUPPORTED(MESA_FORMAT_A8);