ncannasse / hxsl

Haxe Shader Language, a high level 3D shader language for Haxe
86 stars 10 forks source link

free global cache #15

Closed profelis closed 11 years ago

profelis commented 11 years ago

After context dispose shaders from cache doesn't work. Shader.free dispose all Program3D. Without this flash show fault [Fault] exception, information=Error: Error #3600: No valid program set.

ncannasse commented 11 years ago

I've added Shader.ShaderGlobals.dispose() that should work quite well now.

profelis commented 11 years ago

Thanks!