mirror of
https://github.com/love2d/love.git
synced 2026-08-14 01:20:56 +02:00
Determine FramebufferStrategy only once
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user