diff --git a/framebuffer.cpp b/framebuffer.cpp index 8dd200e..ebfa6c0 100644 --- a/framebuffer.cpp +++ b/framebuffer.cpp @@ -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; }