diff options
author | Michel Dänzer <[email protected]> | 2007-11-06 18:22:42 +0100 |
---|---|---|
committer | Michel Dänzer <[email protected]> | 2007-11-06 18:22:42 +0100 |
commit | 5a322bc1b4b6d64ba2994e2b32abc0fdb466a81d (patch) | |
tree | 47ad516284fa8ca65b3275ffcd105dd45a79b8bc /src/mesa/drivers | |
parent | 559ae0ab1b68682716b39d93402a6b9e90c88127 (diff) |
r200: Fix SetTexOffset format for 16 bit pixmaps/textures.
Use symbolic array indices to clarify.
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r-- | src/mesa/drivers/dri/r200/r200_texstate.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mesa/drivers/dri/r200/r200_texstate.c b/src/mesa/drivers/dri/r200/r200_texstate.c index 93c0fb7a65f..755035b07a8 100644 --- a/src/mesa/drivers/dri/r200/r200_texstate.c +++ b/src/mesa/drivers/dri/r200/r200_texstate.c @@ -998,17 +998,17 @@ void r200SetTexOffset(__DRIcontext * pDRICtx, GLint texname, switch (depth) { case 32: - t->pp_txformat = tx_table_le[2].format; - t->pp_txfilter |= tx_table_le[2].filter; + t->pp_txformat = tx_table_le[MESA_FORMAT_ARGB8888].format; + t->pp_txfilter |= tx_table_le[MESA_FORMAT_ARGB8888].filter; break; case 24: default: - t->pp_txformat = tx_table_le[4].format; - t->pp_txfilter |= tx_table_le[4].filter; + t->pp_txformat = tx_table_le[MESA_FORMAT_RGB888].format; + t->pp_txfilter |= tx_table_le[MESA_FORMAT_RGB888].filter; break; case 16: - t->pp_txformat = tx_table_le[5].format; - t->pp_txfilter |= tx_table_le[5].filter; + t->pp_txformat = tx_table_le[MESA_FORMAT_RGB565].format; + t->pp_txfilter |= tx_table_le[MESA_FORMAT_RGB565].filter; break; } } |