ncannasse / hxsl

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

Shader.unbind doesn't unbind textures #14

Closed techkey closed 11 years ago

techkey commented 11 years ago

In the file Shader.hx in the method unbind on line 321 at says:

ctx.setTextureAt(k, i.textures[k]);

After modify that line to:

ctx.setTextureAt(k, null);

the method unbind works as expected.