Merge pull request #8699 from jherico/gl_context_bug

Don't use GL functions before making the context current
This commit is contained in:
Brad Hefta-Gaub 2016-10-01 11:30:50 -07:00 committed by GitHub
commit 55d5e80220

View file

@ -67,8 +67,8 @@ void GLWidget::createContext() {
_context = new gl::Context();
_context->setWindow(windowHandle());
_context->create();
_context->clear();
_context->makeCurrent();
_context->clear();
}
bool GLWidget::makeCurrent() {