We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e739ee5 commit d05fc45Copy full SHA for d05fc45
lib/src/opengl.cpp
@@ -50,14 +50,14 @@ namespace OpenGL {
50
51
void initializeFunctions () {
52
fun = QOpenGLContext::currentContext ()->versionFunctions <QOpenGLFunctions_2_1> ();
53
- if (fun == false) {
+ if (fun == nullptr) {
54
DILAY_PANIC ("could not obtain OpenGL 2.1 context")
55
}
56
fun->initializeOpenGLFunctions ();
57
58
if (OpenGL::supportsGeometryShader ()) {
59
gsFun = std::make_unique <QOpenGLExtension_EXT_geometry_shader4> ();
60
- if (gsFun == false) {
+ if (gsFun == nullptr) {
61
DILAY_PANIC ("could not initialize GL_EXT_geometry_shader4 extension")
62
63
gsFun->initializeOpenGLFunctions ();
0 commit comments