Navigation Menu

Skip to content

Commit

Permalink
Fixed|GL: Black screen after startup
Browse files Browse the repository at this point in the history
The OpenGL context was not active sometimes when the UI atlas was
initialized, causing its size to be (0,0). This meant no UI textures
were available for drawing.

IssueID #2246
  • Loading branch information
skyjake committed Apr 15, 2017
1 parent 7830b29 commit 46a797f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion doomsday/apps/client/src/dd_main.cpp
Expand Up @@ -1254,7 +1254,8 @@ void DD_FinishInitializationAfterWindowReady()
try
{
initializeWithWindowReady();
App::app().notifyStartupComplete();
// Let everyone know we're up and running (via another timer callback).
Loop::get().timer(0.1, [] () { App::app().notifyStartupComplete(); });
return;
}
catch (Error const &er)
Expand Down
1 change: 1 addition & 0 deletions doomsday/apps/client/src/ui/widgets/packageswidget.cpp
Expand Up @@ -688,6 +688,7 @@ DENG_GUI_PIMPL(PackagesWidget)
mainCallForIdentify.enqueue([this] ()
{
//qDebug() << "Bundles identified, re-populating" << &self;
root().window().glActivate();
populateEnabled = true;
self().populate();
});
Expand Down

0 comments on commit 46a797f

Please sign in to comment.