Fixed destroy of texture.