Browse Source

don't drop gsg parameter to makeWindow()

David Rose 19 years ago
parent
commit
7c430582d2
1 changed files with 6 additions and 2 deletions
  1. 6 2
      direct/src/showbase/ShowBase.py

+ 6 - 2
direct/src/showbase/ShowBase.py

@@ -465,8 +465,12 @@ class ShowBase(DirectObject.DirectObject):
         elif type == 'offscreen':
         elif type == 'offscreen':
             flags = flags | GraphicsPipe.BFRefuseWindow
             flags = flags | GraphicsPipe.BFRefuseWindow
 
 
-        win = self.graphicsEngine.makeOutput(pipe, name, 0, fbprops,
-                                             props, flags)
+        if gsg:
+            win = self.graphicsEngine.makeOutput(pipe, name, 0, fbprops,
+                                                 props, flags, gsg)
+        else:
+            win = self.graphicsEngine.makeOutput(pipe, name, 0, fbprops,
+                                                 props, flags)
 
 
         if win == None:
         if win == None:
             # Couldn't create a window!
             # Couldn't create a window!