Fixed a bug which caused textures to be premultiplied twice