Skip to content

Commit

Permalink
Fixed|UI|Client: Clear buffered frames when returning to Home
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Feb 7, 2017
1 parent 342b436 commit 739e012
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
5 changes: 4 additions & 1 deletion doomsday/apps/client/src/clientapp.cpp
Expand Up @@ -929,7 +929,10 @@ void ClientApp::reset()
DoomsdayApp::reset();

Rend_ResetLookups();

for (int i = 0; i < ClientApp::players().count(); ++i)
{
ClientApp::player(i).viewCompositor().glDeinit();
}
if (App_GameLoaded())
{
d->inputSys->initAllDevices();
Expand Down
8 changes: 8 additions & 0 deletions doomsday/apps/client/src/ui/clientwindow.cpp
Expand Up @@ -26,7 +26,10 @@

#include "ui/clientwindow.h"
#include "ui/clientrootwidget.h"
#include "ui/viewcompositor.h"
#include "clientapp.h"
#include "clientplayer.h"

#include <QSurfaceFormat>
#include <QTimer>
#include <QCloseEvent>
Expand Down Expand Up @@ -386,6 +389,11 @@ DENG2_PIMPL(ClientWindow)
root.clearFocusStack();
root.setFocus(nullptr);
}
else // Back to Home.
{
// Release all buffered frames.
busy->releaseTransitionFrame();
}

// Check with Style if blurring is allowed.
taskBar->console().enableBlur(taskBar->style().isBlurringAllowed());
Expand Down

0 comments on commit 739e012

Please sign in to comment.