mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 18:18:06 +02:00
make sure tex format is supported.
This commit is contained in:
parent
2f42558050
commit
9ba2006594
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue