Skip to content

Commit

Permalink
Widgets|libappfw: Ensure OpenGL context is active when initializing
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Apr 17, 2017
1 parent d849969 commit 548e5f3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions doomsday/sdk/libappfw/src/guirootwidget.cpp
Expand Up @@ -164,6 +164,7 @@ DENG2_PIMPL(GuiRootWidget)
{
if (atlas.isNull() || atlas->totalSize() == Atlas::Size())
{
window->glActivate();
atlas.reset(AtlasTexture::newWithKdTreeAllocator(
Atlas::BackingStore | Atlas::AllowDefragment,
GLTexture::maximumSize().min(GLTexture::Size(4096, 4096))));
Expand Down Expand Up @@ -350,6 +351,7 @@ void GuiRootWidget::handleEventAsFallback(Event const &)

void GuiRootWidget::loadCommonTextures()
{
window().glActivate();
d->initBankContents();
}

Expand Down

0 comments on commit 548e5f3

Please sign in to comment.