From ff488253e7a3aa1d0c42aa5518628b9f1381694c Mon Sep 17 00:00:00 2001 From: Stefano Musumeci Date: Sun, 10 Aug 2014 19:39:56 +0200 Subject: [PATCH] TINYGL: Moved variable initialization in the appropriate line. --- graphics/tinygl/zdirtyrect.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/graphics/tinygl/zdirtyrect.cpp b/graphics/tinygl/zdirtyrect.cpp index d892e1ae091..7d955983285 100644 --- a/graphics/tinygl/zdirtyrect.cpp +++ b/graphics/tinygl/zdirtyrect.cpp @@ -165,9 +165,8 @@ void tglPresentBuffer() { #endif // Dispose textures and resources. - bool allDisposed; + bool allDisposed = true; do { - allDisposed = true; TinyGL::GLTexture *t = c->shared_state.texture_hash_table[0]; while (t) { if (t->disposed) {