Fixed a bug with multiple 3D objects with the same texture not drawing.