[Opensg-users] OpenSG2: vs2017 Optimization error

2017-11-28 Thread Michael Raab
Hi all,   we're trying to build the recent OpenSG source with vs2017 (vc141). We noticed that the compiler produces faulty code for release builds when optimization (/O2) is activated.   OSGTextVectorFace.cpp Line 273: indexEnd = tIt->second;   Here, the assignment to indexEnd nevers

Re: [Opensg-users] OpenSG2: vs2017 Optimization error

2017-11-28 Thread Johannes
Hello Michael, > Do you have any ideas how to fix this without deactivating optimizations? First I would try to refactor the code a little. Maybe that is enough to get the compiler back in line. You could for instance move the declaration of index up out of the loop. If that does not solve the