radeon: add default switch case to silence unhandled enum warning
authorBrian Paul <brianp@vmware.com>
Mon, 21 Feb 2011 22:11:44 +0000 (15:11 -0700)
committerBrian Paul <brianp@vmware.com>
Mon, 21 Feb 2011 22:15:52 +0000 (15:15 -0700)
src/mesa/drivers/dri/radeon/radeon_fbo.c

index 6656d391e0966b2ba020001209ffd428486b63d8..d3c9257fb6611c0828ac94cdf44172718a10a330 100644 (file)
@@ -485,6 +485,8 @@ radeon_update_wrapper(struct gl_context *ctx, struct radeon_renderbuffer *rrb,
                case MESA_FORMAT_S8_Z24:
                        rrb->base.DataType = GL_UNSIGNED_INT_24_8_EXT;
                        break;
+               default:
+                       _mesa_problem(ctx, "Unexpected texture format in radeon_update_wrapper()");
        }
                
        rrb->cpp = _mesa_get_format_bytes(texImage->TexFormat);