From: Brian Paul Date: Mon, 21 Feb 2011 22:11:44 +0000 (-0700) Subject: radeon: add default switch case to silence unhandled enum warning X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f9e1542286a05e9773f8f31ee75887f6da969cdb;p=mesa.git radeon: add default switch case to silence unhandled enum warning --- diff --git a/src/mesa/drivers/dri/radeon/radeon_fbo.c b/src/mesa/drivers/dri/radeon/radeon_fbo.c index 6656d391e09..d3c9257fb66 100644 --- a/src/mesa/drivers/dri/radeon/radeon_fbo.c +++ b/src/mesa/drivers/dri/radeon/radeon_fbo.c @@ -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);