From 099ffa23ec6c7d6794653716755a80125f6d6795 Mon Sep 17 00:00:00 2001 From: Brad Davis Date: Tue, 13 Nov 2018 12:19:20 -0800 Subject: [PATCH] PR feedback --- libraries/gl/src/gl/Context.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/gl/src/gl/Context.cpp b/libraries/gl/src/gl/Context.cpp index 7b92548916..371e6454e6 100644 --- a/libraries/gl/src/gl/Context.cpp +++ b/libraries/gl/src/gl/Context.cpp @@ -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); }