PR feedback

This commit is contained in:
Brad Davis 2018-11-13 12:19:20 -08:00
parent 80c83fb4fb
commit 099ffa23ec

View file

@ -314,12 +314,12 @@ void Context::create(QOpenGLContext* shareContext) {
_hglrc = wglCreateContextAttribsARB(_hdc, shareHglrc, &contextAttribs[0]);
}
if (0 != _hglrc) {
if (_hglrc != 0) {
createWrapperContext();
}
}
if (0 == _hglrc) {
if (_hglrc == 0) {
// fallback, if the context creation failed, or USE_CUSTOM_CONTEXT is false
qtCreate(shareContext);
}