From 7e20dd8d0cceb5b0d6d9293df86319a7ff55f7c5 Mon Sep 17 00:00:00 2001 From: unknown Date: Sun, 1 Feb 2015 12:47:09 -0500 Subject: [PATCH] (Glide64) fixed tmu initialization warning by staticizing TMU elements --- Source/Glide64/TexCache.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Source/Glide64/TexCache.cpp b/Source/Glide64/TexCache.cpp index ee2403703..d401a2b06 100644 --- a/Source/Glide64/TexCache.cpp +++ b/Source/Glide64/TexCache.cpp @@ -861,11 +861,13 @@ void TexCache () if (fullscreen) { + int tmu_v[2]; + + tmu_v[0] = tmu_0; + tmu_v[1] = tmu_1; for (int i=0; i<2; i++) { - int tmu; - if (i==0) tmu=tmu_0; - else if (i==1) tmu=tmu_1; + const int tmu = tmu_v[i]; if (tmu >= voodoo.num_tmu) continue;