projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5ab5f16
)
mesa: use _mesa_get_format_bytes()
author
Brian Paul
<brianp@vmware.com>
Mon, 28 Sep 2009 01:49:51 +0000
(19:49 -0600)
committer
Brian Paul
<brianp@vmware.com>
Mon, 28 Sep 2009 01:49:51 +0000
(19:49 -0600)
src/mesa/main/mipmap.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/mipmap.c
b/src/mesa/main/mipmap.c
index 5b70200cd5fa33151bc0fbf0bc69c16093843b63..faa6c47cb78f39ad73fc8931ed8a1c6064e5abc2 100644
(file)
--- a/
src/mesa/main/mipmap.c
+++ b/
src/mesa/main/mipmap.c
@@
-28,6
+28,7
@@
*/
#include "imports.h"
+#include "formats.h"
#include "mipmap.h"
#include "texcompress.h"
#include "texformat.h"
@@
-1641,7
+1642,7
@@
_mesa_generate_mipmap(GLcontext *ctx, GLenum target,
ASSERT(dstData);
}
else {
- bytesPerTexel =
dstImage->TexFormat->TexelBytes
;
+ bytesPerTexel =
_mesa_get_format_bytes(dstImage->TexFormat->MesaFormat)
;
ASSERT(dstWidth * dstHeight * dstDepth * bytesPerTexel > 0);
dstImage->Data = _mesa_alloc_texmemory(dstWidth * dstHeight
* dstDepth * bytesPerTexel);