Commits

vrld  committed bb1423e

Determine FramebufferStrategy only once

  • Participants
  • Parent commits 881c2bc

Comments (0)

Files changed (1)

File src/modules/graphics/opengl/Canvas.cpp

 		}
 	};
 	
-	FramebufferStrategy* strategy;
+	FramebufferStrategy* strategy = NULL;
 	
 	FramebufferStrategy strategyNone;
 	
 	Canvas::Canvas(int width, int height) :
 		width(width), height(height)
 	{
-		strategy = NULL;
-
 		float w = static_cast<float>(width);
 		float h = static_cast<float>(height);