Re: JVM crash
Posted by Warkst on Jun 30, 2017; 3:50pm
URL: https://forum.jogamp.org/JVM-crash-tp4038046p4038048.html
UPDATE: I have found a way to avoid the crash. Everything works if I initiate both VBOs with data right when I generate them. Up to now, I've delayed populating the second VBO with data until I toggle draw2. Simply moving the 2 lines of code (glBindBuffer vbo2 and glBufferData newdata) from the callback that is triggered when I press the toggle button to my init method avoids the crash when toggling. What the actual hell??
(Sorry for not actually posting the lines of code, am on my phone ATM)