def freeController(self): if self.controller and self.modeChangeCount == shader.getModeChangeCount( ): self.controller.free() self.controller = None
def updateModeChangeCount(self): self.modeChangeCount = shader.getModeChangeCount()