[Glide64] Code Cleanup of TexCache.cpp

This commit is contained in:
zilmar 2016-01-20 21:00:15 +11:00
parent a2747bb9d1
commit ce870d82e5
1 changed files with 1545 additions and 1548 deletions

View File

@ -542,7 +542,8 @@ void TexCache ()
if (ghq_dmptex_toggle_key) { if (ghq_dmptex_toggle_key) {
DisplayLoadProgress(L"Texture dump - ON\n"); DisplayLoadProgress(L"Texture dump - ON\n");
ClearCache(); ClearCache();
} else { }
else {
DisplayLoadProgress(L"Texture dump - OFF\n"); DisplayLoadProgress(L"Texture dump - OFF\n");
} }
#if defined(_WIN32) #if defined(_WIN32)
@ -728,7 +729,6 @@ void TexCache ()
} }
} }
rdp.t0 = tmu_0; rdp.t0 = tmu_0;
rdp.t1 = tmu_1; rdp.t1 = tmu_1;
@ -968,7 +968,6 @@ void TexCache ()
LRDP(" | +- TexCache End\n"); LRDP(" | +- TexCache End\n");
} }
#ifdef TEXTURE_FILTER #ifdef TEXTURE_FILTER
/** cite from RiceVideo */ /** cite from RiceVideo */
inline uint32_t CalculateDXT(uint32_t txl2words) inline uint32_t CalculateDXT(uint32_t txl2words)
@ -1365,7 +1364,6 @@ void LoadTex (int id, int tmu)
} }
} }
// ** handle texture splitting ** // ** handle texture splitting **
if (ghqTexInfo.data) if (ghqTexInfo.data)
;//do nothing ;//do nothing
@ -1618,7 +1616,6 @@ void LoadTex (int id, int tmu)
} }
} }
cache->t_info.format = LOWORD(result); cache->t_info.format = LOWORD(result);
cache->realwidth = real_x; cache->realwidth = real_x;