Skip to content

Commit 60ef57f

Browse files
dfchilDaniel Fairchild
andauthored
pvr: Modifier volume header texture address fix (KallistiOS#1189)
The inside texture in modifier volumes was erroneously getting the texture address of the outside texture Co-authored-by: Daniel Fairchild <daniel@viamap.net>
1 parent c235004 commit 60ef57f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

kernel/arch/dreamcast/hardware/pvr/pvr_prim.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ void pvr_poly_mod_compile(pvr_poly_mod_hdr_t *dst, const pvr_poly_cxt_t *src) {
446446
| FIELD_PREP(PVR_TA_PM2_VSIZE, __builtin_ctz(src->txr2.height) - 3);
447447

448448
/* Convert the texture address */
449-
txr_base = to_pvr_txr_ptr(src->txr.base);
449+
txr_base = to_pvr_txr_ptr(src->txr2.base);
450450

451451
/* Polygon mode 3 */
452452
mode3 = FIELD_PREP(PVR_TA_PM3_MIPMAP, src->txr2.mipmap)

0 commit comments

Comments
 (0)