Fixing up queue_geometry and mesh loading.

Local variables were being erroneously re-used when multiple geometry was present.
This solves the issue assuming the model will specify separate materials.