mirror of
https://github.com/lubosz/overte.git
synced 2025-04-07 15:22:09 +02:00
PR feedback
This commit is contained in:
parent
80c83fb4fb
commit
099ffa23ec
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue