浏览代码

Determine FramebufferStrategy only once

vrld 14 年之前
父节点
当前提交
51443454c2
共有 1 个文件被更改,包括 1 次插入3 次删除
  1. 1 3
      src/modules/graphics/opengl/Canvas.cpp

+ 1 - 3
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<float>(width);
 		float h = static_cast<float>(height);