Add unloadShader function.
This commit is contained in:
parent
6119598f63
commit
b4f3663235
|
|
@ -298,3 +298,8 @@ class Loader:
|
|||
if (shader == None):
|
||||
Loader.notify.warning("Could not load shader file %s." % shaderPath)
|
||||
return shader
|
||||
|
||||
def unloadShader(self, shaderPath):
|
||||
if (shaderPath != None):
|
||||
ShaderPool.releaseShader(shaderPath)
|
||||
|
||||
Loading…
Reference in New Issue