diff --git a/Source/Project64-video/TexCache.cpp b/Source/Project64-video/TexCache.cpp index 88677a991..05d4ec06f 100644 --- a/Source/Project64-video/TexCache.cpp +++ b/Source/Project64-video/TexCache.cpp @@ -468,7 +468,7 @@ void GetTexInfo(int id, int tile) static void SelectTBuffTex(TBUFF_COLOR_IMAGE * pTBuffTex) { WriteTrace(TraceRDP, TraceDebug, "SelectTBuffTex: tex: %d, tmu: %d, tile: %d", rdp.tex, pTBuffTex->tmu, pTBuffTex->tile); - gfxTexSource(pTBuffTex->tmu, pTBuffTex->tex_addr, GR_MIPMAPLEVELMASK_BOTH, &(pTBuffTex->info)); + gfxTexSource((gfxChipID_t)pTBuffTex->tile, pTBuffTex->tex_addr, GR_MIPMAPLEVELMASK_BOTH, &(pTBuffTex->info)); } //**************************************************************** @@ -1677,4 +1677,4 @@ void LoadTex(int id, gfxChipID_t tmu) gfxTexSource(tmu, tex_addr, GR_MIPMAPLEVELMASK_BOTH, t_info); } WriteTrace(TraceRDP, TraceDebug, " | | +- LoadTex end"); -} \ No newline at end of file +}