Skip to content

Commit

Permalink
Fixed|GL: Added OpenGL context activations
Browse files Browse the repository at this point in the history
An OpenGL context must be active when executing GL functions. This
includes destruction of OpenGL objects.
  • Loading branch information
skyjake committed Sep 6, 2016
1 parent e7ddd3d commit 102f896
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions doomsday/apps/client/src/busyrunner.cpp
Expand Up @@ -201,6 +201,8 @@ BusyRunner::Result BusyRunner::runTask(BusyTask *task)
delete d->eventLoop;
d->eventLoop = nullptr;

ClientWindow::main().glActivate(); // after processing other events

// Teardown.
if (d->busyWillAnimateTransition)
{
Expand Down
2 changes: 2 additions & 0 deletions doomsday/sdk/libappfw/src/widgets/panelwidget.cpp
Expand Up @@ -362,6 +362,8 @@ void PanelWidget::dismiss()
{
if (isHidden()) return;

root().window().glActivate();

hide();
d->opened = false;
d->dismissTimer.stop();
Expand Down

0 comments on commit 102f896

Please sign in to comment.