@@ -179,10 +179,10 @@ class ShowBase:
"""
try:
# Temporary try .. except for new window code
+ self.graphicsEngine.removeAllWindows()
+ except:
for win in self.winList:
win.closeWindow()
- except:
- pass
del self.win
del self.winList
del self.pipe
@@ -221,6 +221,7 @@ class ShowBase:
pass
self.getCameras(chanConfig)
+ return win
def setupRender(self):
@@ -28,7 +28,7 @@
// Don't define this unless you have drose's new GraphicsWindow code,
// which is currently a work in progress. You probably won't have it
// unless you are drose.
-//#define NEW_WINDOW_CODE
+#define NEW_WINDOW_CODE 1
#ifdef NEW_WINDOW_CODE
#include "graphicsPipeSelection.h"