Procházet zdrojové kódy

r300g: fix texture pitch to correct value.

pitch is pixels - 1, not bytes.
tags/mesa_7_7_rc1
Dave Airlie před 16 roky
rodič
revize
07183b73eb
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1
    1
      src/gallium/drivers/r300/r300_texture.c

+ 1
- 1
src/gallium/drivers/r300/r300_texture.c Zobrazit soubor

@@ -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. */

Načítá se…
Zrušit
Uložit