(self)
Clean up all variables.
Clean up all variables.
Clean up all variables .
def cleanup(self):
        """Clean up all variables."""
        log_debug("Cleaning up all variables.")
        for variable in self.get_variables():
            shader_type = variable['shader_type']
            if shader_type in ('attribute', 'texture'):
                getattr(self, 'cleanup_%s' % shader_type)(variable['name'])
        # clean up shaders
        self.shader_manager.cleanup()
def cleanup ( self ) : log_debug ( "Cleaning up all variables." ) for variable in self . get_variables ( ) : shader_type = variable [ 'shader_type' ] if shader_type in ( 'attribute' , 'texture' ) : getattr ( self , 'cleanup_%s' % shader_type ) ( variable [ 'name' ] ) # clean up shaders self . shader_manager . cleanup ( )