GPUstate :Add getTextureWidth() & getTextureHeight()

and
This commit is contained in:
raven02 committed 2013-07-30 23:09:22 +08:00
1 parent 4ac782f789
commit 75c9ce2498
5 files changed
+12 -10

No files matched your search

+4 -4
View File
@@ -392,8 +392,8 @@ inline void DeIndexTexture4Optimal(ClutT *dest, const u32 texaddr, int length, C
void *TextureCache::readIndexedTex(int level, u32 texaddr, int bytesPerIndex, GLuint dstFmt) {
int bufw = GetLevelBufw(level, texaddr);
int w = 1 << (gstate.texsize[0] & 0xf);
int h = 1 << ((gstate.texsize[0] >> 8) & 0xf);
int w = gstate.getTextureWidth();
int h = gstate.getTextureHeight();
int length = bufw * h;
void *buf = NULL;
switch (gstate.getClutPaletteFormat()) {
@@ -996,8 +996,8 @@ void TextureCache::SetTexture() {
cluthash = 0;
}
int w = 1 << (gstate.texsize[0] & 0xf);
int h = 1 << ((gstate.texsize[0] >> 8) & 0xf);
int w = gstate.getTextureWidth();
int h = gstate.getTextureHeight();
int bufw = GetLevelBufw(0, texaddr);
int maxLevel = ((gstate.texmode >> 16) & 0x7);