diff --git a/GPU/GPUState.h b/GPU/GPUState.h index 9582f49c69..19c01600ae 100644 --- a/GPU/GPUState.h +++ b/GPU/GPUState.h @@ -278,6 +278,7 @@ struct GPUgstate // Texturing int getTextureWidth(int level) const { return 1 << (texsize[level] & 0xf);} int getTextureHeight(int level) const { return 1 << ((texsize[level] >> 8) & 0xf);} + u16 getTextureDimension(int level) const { return texsize[level] & 0xf0f;} bool isTextureMapEnabled() const { return textureMapEnable & 1; } GETexFunc getTextureFunction() const { return static_cast(texfunc & 0x7); } bool isColorDoublingEnabled() const { return (texfunc & 0x10000) != 0; }