fixed destroy of WebGLRenderer texture

Please pull this for dev branch. (was also fixed on master)