Add a few gstate accessors for texture type stuff.

This commit is contained in:
Unknown W. Brackets 2013-08-24 10:51:17 -07:00
parent 0a217a1254
commit 7f6cf3ec29
7 changed files with 14 additions and 12 deletions

View file

@ -46,7 +46,7 @@ static inline int orient2dIncY(int dX01)
static inline int GetPixelDataOffset(unsigned int texel_size_bits, unsigned int row_pitch_bits, unsigned int u, unsigned int v)
{
if (!(gstate.texmode & 1))
if (!gstate.isTextureSwizzled())
return v * row_pitch_bits *texel_size_bits/8 / 8 + u * texel_size_bits / 8;
int tile_size_bits = 32;