Browse Source

filter: Remove the silly dependency on the ShowBase instance

Closes #1302
Sergei Korotkov 3 years ago
parent
commit
e3cf5be500
1 changed files with 1 additions and 1 deletions
  1. 1 1
      direct/src/filter/FilterManager.py

+ 1 - 1
direct/src/filter/FilterManager.py

@@ -322,7 +322,7 @@ class FilterManager(DirectObject):
             props.setAuxRgba(1)
             props.setAuxRgba(1)
         if (auxtex1 != None):
         if (auxtex1 != None):
             props.setAuxRgba(2)
             props.setAuxRgba(2)
-        buffer=base.graphicsEngine.makeOutput(
+        buffer=self.engine.makeOutput(
             self.win.getPipe(), name, -1,
             self.win.getPipe(), name, -1,
             props, winprops, GraphicsPipe.BFRefuseWindow | GraphicsPipe.BFResizeable,
             props, winprops, GraphicsPipe.BFRefuseWindow | GraphicsPipe.BFResizeable,
             self.win.getGsg(), self.win)
             self.win.getGsg(), self.win)