Graphics: Remove useless and confusing function

This commit is contained in:
Jonas Kulla 2013-12-08 12:57:46 +01:00
parent 5328d17090
commit bf712f3738
1 changed files with 5 additions and 10 deletions

View File

@ -511,18 +511,11 @@ struct GraphicsPrivate
threadData->config.smoothScaling ? FBO::Linear : FBO::Nearest);
}
/* Blits currently bound read FBO to screen (upside-down) */
void blitToScreen()
{
FBO::unbind(FBO::Draw);
FBO::clear();
blitBufferFlippedScaled();
}
void redrawScreen()
{
screen.composite();
blitToScreen();
FBO::clear();
blitBufferFlippedScaled();
swapGLBuffer();
}
@ -644,7 +637,9 @@ void Graphics::transition(int duration,
/* Then blit it flipped and scaled to the screen */
FBO::bind(p->transBuffer.fbo, FBO::Read);
p->blitToScreen();
FBO::unbind(FBO::Draw);
FBO::clear();
p->blitBufferFlippedScaled();
p->swapGLBuffer();
}