From 51443454c2bd6b6c19addb7a7c82574511f51578 Mon Sep 17 00:00:00 2001 From: vrld Date: Wed, 12 Oct 2011 17:10:04 +0200 Subject: [PATCH] Determine FramebufferStrategy only once --- src/modules/graphics/opengl/Canvas.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/modules/graphics/opengl/Canvas.cpp b/src/modules/graphics/opengl/Canvas.cpp index cbd151005..910a9c33b 100644 --- a/src/modules/graphics/opengl/Canvas.cpp +++ b/src/modules/graphics/opengl/Canvas.cpp @@ -140,7 +140,7 @@ namespace opengl } }; - FramebufferStrategy* strategy; + FramebufferStrategy* strategy = NULL; FramebufferStrategy strategyNone; @@ -165,8 +165,6 @@ namespace opengl Canvas::Canvas(int width, int height) : width(width), height(height) { - strategy = NULL; - float w = static_cast(width); float h = static_cast(height);