Add unloadShader function.

This commit is contained in:
aignacio_sf 2006-04-08 00:52:32 +00:00
parent 6119598f63
commit b4f3663235
1 changed files with 5 additions and 0 deletions

View File

@ -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)