From 65929156dd0f52c8e9ee57d13a268a331155a766 Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Tue, 18 Jun 2013 13:28:19 +0000 Subject: [PATCH] tutorial: fix uninitialised memory in the FBO demo. --- tutorial/08_fbo.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tutorial/08_fbo.cpp b/tutorial/08_fbo.cpp index 002ac803..dd9485aa 100644 --- a/tutorial/08_fbo.cpp +++ b/tutorial/08_fbo.cpp @@ -24,6 +24,8 @@ class FBO : public WorldEntity { public: FBO() + : m_time(0.f), + m_ready(false) { m_vertices << vec2( 1.0, 1.0); m_vertices << vec2(-1.0, -1.0); @@ -31,7 +33,6 @@ public: m_vertices << vec2(-1.0, -1.0); m_vertices << vec2( 1.0, 1.0); m_vertices << vec2(-1.0, 1.0); - m_ready = false; } virtual void TickGame(float seconds)