Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <montagne29@wanadoo.fr>2016-05-24 12:47:48 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2016-05-24 12:49:30 +0300
commita7c3ec4febf2450551f4663b78f0562c0e886923 (patch)
treecf8461caf50cbe62581c930a3773e9500c631d1e /intern/ghost/intern/GHOST_ContextSDL.cpp
parent0b588f0905c7fa17c61e612e4457c96be176145c (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.cpp2
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) {