Add a few gstate accessors for texture type stuff.
This commit is contained in:
parent
0a217a1254
commit
7f6cf3ec29
7 changed files with 14 additions and 12 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue