1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-09-15 15:02:34 +02:00
This commit is contained in:
NFS_MONSTR 2018-05-23 22:45:39 +03:00
parent de8131924d
commit 5da89a871b
2 changed files with 5 additions and 4 deletions

View File

@ -402,12 +402,12 @@ void GameRenderer::renderWorld(GameWorld* world, const ViewCamera& camera,
}
if ((world->state->isCinematic || world->state->currentCutscene) &&
splashTexName != 0) {
splashTexName != 0 && !world->isPaused()) {
renderLetterbox();
}
float fadeTimer = world->getGameTime() - world->state->fadeStart;
if (fadeTimer < world->state->fadeTime || !world->state->fadeOut) {
if ((fadeTimer < world->state->fadeTime || !world->state->fadeOut) && !world->isPaused()) {
/// @todo rewrite this render code to use renderer class
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
glUseProgram(ssRectProgram);
@ -439,7 +439,7 @@ void GameRenderer::renderWorld(GameWorld* world, const ViewCamera& camera,
}
if ((world->state->isCinematic || world->state->currentCutscene) &&
splashTexName == 0) {
splashTexName == 0 && !world->isPaused()) {
renderLetterbox();
}

View File

@ -604,7 +604,8 @@ void RWGame::render(float alpha, float time) {
}
RW_PROFILE_END();
drawOnScreenText(world.get(), &renderer);
if (!world->isPaused())
drawOnScreenText(world.get(), &renderer);
}
void RWGame::renderDebugStats(float time) {