Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions src/GraphicsWindowQt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -848,14 +848,24 @@ bool GraphicsWindowQt::makeCurrentImplementation()
if (_widget->getNumDeferredEvents() > 0)
_widget->processDeferredEvents();

#if QT_VERSION < 0x050000
_widget->makeCurrent();
#else
if (_widget->context()->contextHandle())
_widget->makeCurrent();
#endif

return true;
}

bool GraphicsWindowQt::releaseContextImplementation()
{
#if QT_VERSION < 0x050000
_widget->doneCurrent();
#else
if (_widget->context()->contextHandle())
_widget->doneCurrent();
#endif
return true;
}

Expand Down