From a327d4c324d0cda5007d2dfaf569a1d639a21643 Mon Sep 17 00:00:00 2001 From: Jonas Kulla Date: Tue, 24 Sep 2013 19:56:27 +0200 Subject: [PATCH] Fix valgrind warning (value might be uninitialized) --- src/graphics.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/graphics.cpp b/src/graphics.cpp index 7b24922..28bfd08 100644 --- a/src/graphics.cpp +++ b/src/graphics.cpp @@ -81,7 +81,7 @@ struct TimerQuery if (thisQueryActive) return false; - GLint isReady; + GLint isReady = GL_FALSE; glGetQueryObjectiv(query, GL_QUERY_RESULT_AVAILABLE, &isReady); if (isReady != GL_TRUE)