diff --git a/src/OpenMesh/Apps/VDProgMesh/Synthesizer/VDPMSynthesizerViewerWidget.cc b/src/OpenMesh/Apps/VDProgMesh/Synthesizer/VDPMSynthesizerViewerWidget.cc index 7e387704..2f70c8ab 100644 --- a/src/OpenMesh/Apps/VDProgMesh/Synthesizer/VDPMSynthesizerViewerWidget.cc +++ b/src/OpenMesh/Apps/VDProgMesh/Synthesizer/VDPMSynthesizerViewerWidget.cc @@ -407,7 +407,7 @@ open_vd_prog_mesh(const char* _filename) } // - bool swap = Endian::local() != Endian::LSB; + bool swap_required = Endian::local() != Endian::LSB; // read header ifs.read(fileformat, 10); fileformat[10] = '\0'; @@ -418,9 +418,9 @@ open_vd_prog_mesh(const char* _filename) exit(1); } - IO::restore(ifs, n_base_vertices_, swap); - IO::restore(ifs, n_base_faces_, swap); - IO::restore(ifs, n_details_, swap); + IO::restore(ifs, n_base_vertices_, swap_required); + IO::restore(ifs, n_base_faces_, swap_required); + IO::restore(ifs, n_details_, swap_required); mesh_.clear(); vfront_.clear(); @@ -431,12 +431,12 @@ open_vd_prog_mesh(const char* _filename) // load base mesh for (i=0; i