fixed stupid bug

This commit is contained in:
Anselme 2015-12-07 15:37:50 +01:00
parent fbc9a5d037
commit 280fd4d1fd

View File

@ -43,7 +43,7 @@ Texture* FrameBuffer::getTexture(int texId)
FrameBuffer* FrameBuffer::getScreen()
{
static FrameBuffer* screen = NULL;
if(screen != NULL)
if(screen == NULL)
screen = new FrameBuffer(true);
return screen;
}