projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2f42558
)
make sure tex format is supported.
author
Aapo Tahkola
<aet@rasterburn.org>
Tue, 6 Jun 2006 18:37:45 +0000
(18:37 +0000)
committer
Aapo Tahkola
<aet@rasterburn.org>
Tue, 6 Jun 2006 18:37:45 +0000
(18:37 +0000)
src/mesa/drivers/dri/r300/r300_texstate.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/r300/r300_texstate.c
b/src/mesa/drivers/dri/r300/r300_texstate.c
index b8055788229638a190db7a7c848d151ef639d7de..b76e3490de7aa16963f30fc762c5deec85aa5e5e 100644
(file)
--- a/
src/mesa/drivers/dri/r300/r300_texstate.c
+++ b/
src/mesa/drivers/dri/r300/r300_texstate.c
@@
-190,7
+190,8
@@
static void r300SetTexImages(r300ContextPtr rmesa,
t->format &= ~(R200_TXFORMAT_FORMAT_MASK |
R200_TXFORMAT_ALPHA_IN_MAP);
- if (VALID_FORMAT(baseImage->TexFormat->MesaFormat)) {
+ if (VALID_FORMAT(baseImage->TexFormat->MesaFormat) &&
+ tx_table[baseImage->TexFormat->MesaFormat].flag) {
t->format =
tx_table[baseImage->TexFormat->MesaFormat].format;
#if 1