mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 18:18:06 +02:00
r300g: fix texture pitch to correct value.
pitch is pixels - 1, not bytes.
This commit is contained in:
parent
8130375e77
commit
07183b73eb
1 changed files with 1 additions and 1 deletions
|
|
@ -37,7 +37,7 @@ static void r300_setup_texture_state(struct r300_texture* tex,
|
|||
/* XXX */
|
||||
state->format1 = r300_translate_texformat(tex->tex.format);
|
||||
|
||||
state->format2 = r300_texture_get_stride(tex, 0);
|
||||
state->format2 = (r300_texture_get_stride(tex, 0) / tex->tex.block.size) - 1;
|
||||
|
||||
/* Assume (somewhat foolishly) that oversized textures will
|
||||
* not be permitted by the state tracker. */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue