new window code tweaks

This commit is contained in:
David Rose 2002-12-21 02:07:46 +00:00
parent 7e8564756b
commit 177f2f71a2
2 changed files with 4 additions and 3 deletions

View File

@ -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):

View File

@ -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"