diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2016-05-24 12:47:48 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2016-05-24 12:49:30 +0300 |
commit | a7c3ec4febf2450551f4663b78f0562c0e886923 (patch) | |
tree | cf8461caf50cbe62581c930a3773e9500c631d1e /intern/ghost/intern/GHOST_ContextSDL.cpp | |
parent | 0b588f0905c7fa17c61e612e4457c96be176145c (diff) |
GHOST cleanup (null check before delete, and 0 -> NULL for pointers).
Based on patch from Lawrence D'Oliveiro (ldo) in T48499.
Diffstat (limited to 'intern/ghost/intern/GHOST_ContextSDL.cpp')
-rw-r--r-- | intern/ghost/intern/GHOST_ContextSDL.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/ghost/intern/GHOST_ContextSDL.cpp b/intern/ghost/intern/GHOST_ContextSDL.cpp index d80a638818c..39627fac899 100644 --- a/intern/ghost/intern/GHOST_ContextSDL.cpp +++ b/intern/ghost/intern/GHOST_ContextSDL.cpp @@ -69,7 +69,7 @@ GHOST_ContextSDL::GHOST_ContextSDL( GHOST_ContextSDL::~GHOST_ContextSDL() { if (m_context != NULL) { - if (m_window != 0 && m_context == SDL_GL_GetCurrentContext()) + if (m_window != NULL && m_context == SDL_GL_GetCurrentContext()) SDL_GL_MakeCurrent(m_window, m_context); if (m_context != s_sharedContext || s_sharedCount == 1) { |