Don't use GL functions before making the context current

This commit is contained in:
Brad Davis 2016-10-01 10:40:31 -07:00
parent b69a49d7bc
commit 0f06d0e4cc

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() {