Skip to content

Commit b1ae25c

Browse files
mardyDacoTaco
authored andcommitted
gx: fix a copy&paste error recently introduced in GX_SetTevIndTile()
Oops! I've been mistakenly used the X value for the Y dimension as well. Hopefully this won't break many applications, both because this function is rarely used, both because often one uses the same value for both dimensions.
1 parent 7a2c05b commit b1ae25c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

libogc/gx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4236,7 +4236,7 @@ void GX_SetTevIndTile(u8 tevstage,u8 indtexid,u16 tilesize_x,u16 tilesize_y,u16
42364236
offset_mtx[0][1] = 0.0F;
42374237
offset_mtx[0][2] = 0.0F;
42384238
offset_mtx[1][0] = 0.0F;
4239-
offset_mtx[1][1] = ((f32)tilespacing_x)/(1 << 10);
4239+
offset_mtx[1][1] = ((f32)tilespacing_y)/(1 << 10);
42404240
offset_mtx[1][2] = 0.0F;
42414241

42424242
GX_SetIndTexMatrix(indtexmtx,offset_mtx,10);

0 commit comments

Comments
 (0)