Determine FramebufferStrategy only once

This commit is contained in:
vrld
2011-10-12 17:10:04 +02:00
parent 6b7b68ebd0
commit 51443454c2
+1 -3
View File
@@ -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);