[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [31824] trunk/blender/intern/ghost/intern/ GHOST_SystemWin32.cpp: Commit patch [#23685] Cleanup/ crashfix for AA using win32 ghost.
Nathan Letwory
nathan at letworyinteractive.com
Wed Sep 8 10:25:38 CEST 2010
Revision: 31824
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=31824
Author: jesterking
Date: 2010-09-08 10:25:38 +0200 (Wed, 08 Sep 2010)
Log Message:
-----------
Commit patch [#23685] Cleanup/crashfix for AA using win32 ghost.
Provided by Mitchell Stokes (Moguri)
Modified Paths:
--------------
trunk/blender/intern/ghost/intern/GHOST_SystemWin32.cpp
Modified: trunk/blender/intern/ghost/intern/GHOST_SystemWin32.cpp
===================================================================
--- trunk/blender/intern/ghost/intern/GHOST_SystemWin32.cpp 2010-09-08 07:30:20 UTC (rev 31823)
+++ trunk/blender/intern/ghost/intern/GHOST_SystemWin32.cpp 2010-09-08 08:25:38 UTC (rev 31824)
@@ -207,17 +207,17 @@
}
else {
// An invalid window could be one that was used to test for AA
- GHOST_Window *other_window = ((GHOST_WindowWin32*)window)->getNextWindow();
-
- delete window;
- window = 0;
+ window = ((GHOST_WindowWin32*)window)->getNextWindow();
// If another window is found, let the wm know about that one, but not the old one
- if (other_window)
- {
- m_windowManager->addWindow(other_window);
- window = other_window;
+ if (window->getValid()) {
+ m_windowManager->addWindow(window);
}
+ else {
+ delete window;
+ window = 0;
+ }
+
}
}
return window;
More information about the Bf-blender-cvs
mailing list