Explorar el Código

don't drop gsg parameter to makeWindow()

David Rose hace 19 años
padre
commit
7c430582d2
Se han modificado 1 ficheros con 6 adiciones y 2 borrados
  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':
             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:
             # Couldn't create a window!