Skip to content

Commit e34eb66

Browse files
authored
Merge pull request #3248 from MRtrix3/fix_opengl_context_macos
Fix OpenGL context creation on macOS
2 parents cba9e63 + bc321bb commit e34eb66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpp/gui/opengl/gl_core_3_3.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ namespace gl {
3737

3838
static void *AppleGLGetProcAddress(const char *name) {
3939
static void *image = nullptr;
40-
if (image = nullptr)
40+
if (image == nullptr)
4141
image = dlopen("/System/Library/Frameworks/OpenGL.framework/Versions/Current/OpenGL", RTLD_LAZY);
4242

4343
return (image ? dlsym(image, (const char *)name) : nullptr);

0 commit comments

Comments
 (0)