Skip to content

Commit d31aebb

Browse files
committed
nit fixes
1 parent 74949ec commit d31aebb

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/libprojectM/ProjectM.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ class PROJECTM_EXPORT ProjectM
296296
bool m_presetLocked{false}; //!< If true, the preset change event will not be sent.
297297
bool m_presetChangeNotified{false}; //!< Stores whether the user has been notified that projectM wants to switch the preset.
298298

299-
std::shared_ptr<Renderer::Platform::GLResolver> m_glResolver; //!< Function resolver for accessing GL backend. Stored for keeping ref count, may be null.
299+
std::shared_ptr<Renderer::Platform::GLResolver> m_glResolver; //!< Function resolver for accessing GL backend. Stored for keeping ref count.
300300
std::unique_ptr<PresetFactoryManager> m_presetFactoryManager; //!< Provides access to all available preset factories.
301301

302302
Audio::PCM m_audioStorage; //!< Audio data buffer and analyzer instance.

src/libprojectM/ProjectMCWrapper.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ projectm_handle projectm_create_with_opengl_load_proc(void* (*load_proc)(const c
8484
// obtain shared resolver instance
8585
auto glResolver = libprojectM::Renderer::Platform::GLResolver::Instance();
8686
// init resolver to discover gl function pointers and init GLAD
87-
// Initialize() is guarded internally, may be executed multiple times
87+
// Initialize() is guarded internally, may be called multiple times
8888
auto success = glResolver->Initialize(load_proc, user_data);
8989
if (!success)
9090
{

src/libprojectM/Renderer/PlatformGLResolver.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ auto GLResolver::Instance() -> std::shared_ptr<GLResolver>
3737
// client shared_ptr is released
3838
static std::weak_ptr<GLResolver> sharedInstance;
3939
auto instance = sharedInstance.lock();
40-
if (!instance)
40+
if (instance == nullptr)
4141
{
4242
instance = std::make_shared<GLResolver>();
4343
sharedInstance = instance;

0 commit comments

Comments
 (0)