projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
781a204
)
osmesa: remove unused bpc variable
author
Fabio Pedretti
<fabio.ped@libero.it>
Tue, 6 Dec 2011 15:42:54 +0000
(08:42 -0700)
committer
Brian Paul
<brianp@vmware.com>
Tue, 6 Dec 2011 15:42:54 +0000
(08:42 -0700)
Signed-off-by: Brian Paul <brianp@vmware.com>
src/mesa/drivers/osmesa/osmesa.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/osmesa/osmesa.c
b/src/mesa/drivers/osmesa/osmesa.c
index 4e6d5b69d573803ba6fcfbed50fe091bfbfe79bc..be3bc6e707c3f8ab91f2572c05c6aa16c97ac7af 100644
(file)
--- 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;