Skip to content

Commit d05fc45

Browse files
AMDmi3abau
authored andcommitted
Compare pointers with nullptr, not false
1 parent e739ee5 commit d05fc45

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/src/opengl.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,14 @@ namespace OpenGL {
5050

5151
void initializeFunctions () {
5252
fun = QOpenGLContext::currentContext ()->versionFunctions <QOpenGLFunctions_2_1> ();
53-
if (fun == false) {
53+
if (fun == nullptr) {
5454
DILAY_PANIC ("could not obtain OpenGL 2.1 context")
5555
}
5656
fun->initializeOpenGLFunctions ();
5757

5858
if (OpenGL::supportsGeometryShader ()) {
5959
gsFun = std::make_unique <QOpenGLExtension_EXT_geometry_shader4> ();
60-
if (gsFun == false) {
60+
if (gsFun == nullptr) {
6161
DILAY_PANIC ("could not initialize GL_EXT_geometry_shader4 extension")
6262
}
6363
gsFun->initializeOpenGLFunctions ();

0 commit comments

Comments
 (0)