diff options
author | Aapo Tahkola <[email protected]> | 2006-06-06 18:37:45 +0000 |
---|---|---|
committer | Aapo Tahkola <[email protected]> | 2006-06-06 18:37:45 +0000 |
commit | 9ba2006594a54173956b2af69055f633fa813bf8 (patch) | |
tree | 1d25d46eddb85281fcfee15efb8d0402e1b25d32 | |
parent | 2f42558050fb9330719c13a6fb5b1f6a5fc14179 (diff) |
make sure tex format is supported.
-rw-r--r-- | src/mesa/drivers/dri/r300/r300_texstate.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/r300/r300_texstate.c b/src/mesa/drivers/dri/r300/r300_texstate.c index b8055788229..b76e3490de7 100644 --- 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 |