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:
authorMitchell Stokes <mogurijin@gmail.com>2011-08-30 21:30:35 +0400
committerMitchell Stokes <mogurijin@gmail.com>2011-08-30 21:30:35 +0400
commit2475ad0ab9b9dd40215d9c80a320247a1a7d9eaa (patch)
treea6f706da04063fef7eac8966cd8fe1cb28eae0c1 /intern/ghost
parentc6f994062e4f871aa2f81c289b49ac7245b3056c (diff)
When creating a multisample window for Win32, the first context created, which checks for multisample support, was never being deleted.
Diffstat (limited to 'intern/ghost')
-rw-r--r--intern/ghost/intern/GHOST_WindowWin32.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/intern/ghost/intern/GHOST_WindowWin32.cpp b/intern/ghost/intern/GHOST_WindowWin32.cpp
index 0c8c0adf041..d9a495ad0f4 100644
--- a/intern/ghost/intern/GHOST_WindowWin32.cpp
+++ b/intern/ghost/intern/GHOST_WindowWin32.cpp
@@ -866,6 +866,8 @@ GHOST_TSuccess GHOST_WindowWin32::installDrawingContext(GHOST_TDrawingContextTyp
{
// Make sure we don't screw up the context
+ if (m_hGlRc == s_firsthGLRc)
+ s_firsthGLRc = NULL;
m_drawingContextType = GHOST_kDrawingContextTypeOpenGL;
removeDrawingContext();