summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabio Pedretti <[email protected]>2011-12-06 08:42:54 -0700
committerBrian Paul <[email protected]>2011-12-06 08:42:54 -0700
commit0b34074bdb978c95b8de65517143c546ac0cf75f (patch)
tree46e874e9c06bf8bc2974de4b1c4021b9590b2be5
parent781a204bcf5599716991e5d36b08a36db5209441 (diff)
osmesa: remove unused bpc variable
Signed-off-by: Brian Paul <[email protected]>
-rw-r--r--src/mesa/drivers/osmesa/osmesa.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/mesa/drivers/osmesa/osmesa.c b/src/mesa/drivers/osmesa/osmesa.c
index 4e6d5b69d57..be3bc6e707c 100644
--- a/src/mesa/drivers/osmesa/osmesa.c
+++ b/src/mesa/drivers/osmesa/osmesa.c
@@ -795,14 +795,6 @@ osmesa_renderbuffer_storage(struct gl_context *ctx, struct gl_renderbuffer *rb,
GLenum internalFormat, GLuint width, GLuint height)
{
const OSMesaContext osmesa = OSMESA_CONTEXT(ctx);
- GLint bpc; /* bits per channel */
-
- if (rb->DataType == GL_UNSIGNED_BYTE)
- bpc = 8;
- else if (rb->DataType == GL_UNSIGNED_SHORT)
- bpc = 16;
- else
- bpc = 32;
/* Note: we can ignoring internalFormat for "window-system" renderbuffers */
(void) internalFormat;