<div dir="ltr">Hello to everyone,<div><br></div><div>I'm trying to develop a simple example that update the celldata of a polydata in a thread while rendering in the main thread.</div><div>My final goal is to interact with the scene, and pause the updates.</div><div><br></div><div>To archive this i'm using a simple mutex and a boolean.</div><div>However it seams that i'm trying to access the render for two different threads, and the mutex isn't enough, because when interacting with the scene errors like the one below appears, and at random the program stops with a segmentation.</div><div><br></div><div>
<p style="margin:0px"><span style="color:rgb(170,0,0)">vtkOpenGLPolyDataMapper (0x1b62980): failed after UpdateShader 1 OpenGL errors detected</span></p>
<p style="margin:0px"><span style="color:rgb(170,0,0)"> 0 : (1282) Invalid operation</span></p><p style="margin:0px"><span style="color:rgb(170,0,0)"><br></span></p></div><div>I attach the code, any help is very appreciated.</div><div><br></div><div>Best regards</div><div>Antonio Fortino</div><div><br></div><div><br></div><div><div><br></div></div></div>