<html><head></head><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div id="yui_3_16_0_ym19_1_1478049561285_3888"><span id="yui_3_16_0_ym19_1_1478049561285_3899">I'm on 7.0.0 currently.</span></div><div id="yui_3_16_0_ym19_1_1478049561285_3888"><span><br></span></div><div id="yui_3_16_0_ym19_1_1478049561285_3888"><span>Mike</span></div><div class="qtdSeparateBR" id="yui_3_16_0_ym19_1_1478049561285_3889"><br><br></div><div class="yahoo_quoted" id="yui_3_16_0_ym19_1_1478049561285_3895" style="display: block;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;" id="yui_3_16_0_ym19_1_1478049561285_3894"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;" id="yui_3_16_0_ym19_1_1478049561285_3893"> <div dir="ltr" id="yui_3_16_0_ym19_1_1478049561285_3892"> <font size="2" face="Arial" id="yui_3_16_0_ym19_1_1478049561285_3891"> <hr size="1" id="yui_3_16_0_ym19_1_1478049561285_3890"> <b><span style="font-weight:bold;">From:</span></b> Ken Martin <ken.martin@kitware.com><br> <b><span style="font-weight: bold;">To:</span></b> Mike Withascarf <mikewithascarf@yahoo.com> <br><b><span style="font-weight: bold;">Cc:</span></b> Thales Luis Rodrigues Sabino <tluisrs@gmail.com>; "vtkusers@vtk.org" <vtkusers@vtk.org><br> <b><span style="font-weight: bold;">Sent:</span></b> Tuesday, November 1, 2016 8:59 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [vtkusers] QT VTK OpenGL errors<br> </font> </div> <div class="y_msg_container" id="yui_3_16_0_ym19_1_1478049561285_3896"><br><div id="yiv3678787505"><div id="yui_3_16_0_ym19_1_1478049561285_3898"><div dir="ltr" id="yui_3_16_0_ym19_1_1478049561285_3897">What version of VTK are you using? There were some fixes related to that type of issue a few weeks ago.<div id="yui_3_16_0_ym19_1_1478049561285_3900"><br clear="none"></div><div id="yui_3_16_0_ym19_1_1478049561285_3901">Thanks!</div><div id="yui_3_16_0_ym19_1_1478049561285_3902">Ken</div></div><div class="yiv3678787505gmail_extra" id="yui_3_16_0_ym19_1_1478049561285_3903"><br clear="none"><div class="yiv3678787505gmail_quote" id="yui_3_16_0_ym19_1_1478049561285_3904">On Tue, Nov 1, 2016 at 8:01 PM, Mike Withascarf via vtkusers <span dir="ltr"><<a rel="nofollow" shape="rect" ymailto="mailto:vtkusers@vtk.org" target="_blank" href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>></span> wrote:<br clear="none"><blockquote class="yiv3678787505gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;" id="yui_3_16_0_ym19_1_1478049561285_3907"><div class="yiv3678787505yqt1326260454" id="yiv3678787505yqt39249"><div id="yui_3_16_0_ym19_1_1478049561285_3906"><div style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;" id="yui_3_16_0_ym19_1_1478049561285_3905"><div dir="ltr" id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_3937"><span id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4241" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;">That's right, the problem only happens if there are more than one QVTKWidget. </span><br clear="none" id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4242" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;"><br clear="none" id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4243" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;"><span id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4244" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;">I've managed to create a fairly simple example to reproduce the problem: </span><br clear="none" id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4245" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;"><br clear="none" id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4246" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;"><a rel="nofollow" shape="rect" id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4247" target="_blank" href="https://drive.google.com/open?id=0BxalkOjn2_PecG5kUUZrN2djMlU" style="font-size:13.44px;color:rgb(85,26,139);font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;background-color:rgb(255,255,255);">https://drive.google.com/open? id=0BxalkOjn2_ PecG5kUUZrN2djMlU</a><br clear="none" id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4248" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;"><br clear="none" id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4249" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;"><span id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4250" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;">It's a very basic modification of the SideBySideRenderWindowsQt example provided by VTK. I've simply added a button, and when it's clicked it will clear the left window and add a sphere, then clear the right window and add a sphere. If I do the following it produces the OpenGL errors every time for me: </span><br clear="none" id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4251" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;"><br clear="none" id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4252" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;"><span id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4253" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;">1. Click the button. </span><br clear="none" id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4254" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;"><span id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4255" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;">2. Manually rotate both spheres. </span><br clear="none" id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4256" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;"><span id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4257" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;">3. Click the button. </span><br clear="none" id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4258" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;"><span id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4259" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;">4. Manually rotate both spheres. </span><br clear="none" id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4260" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;"><span id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4261" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;">5. Click the button. </span><br clear="none" id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4262" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;"><span id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4263" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;">6. Manually rotate both spheres. (You'll get the errors here) </span><br clear="none" id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4264" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;"><br clear="none" id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4265" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;"><span id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4266" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;">Here's the code below. Interestingly if I move both clear calls before both of the addsphere calls it works fine. Unfortunately that approach won't work for my app (needs to be able to change a single window). </span><br clear="none" id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4267" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;"><br clear="none" id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4268" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;"><br clear="none" id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4269" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;"><span id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4270" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;">#include "SideBySideRenderWindowsQt.h" </span><br clear="none" id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4271" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;"><br clear="none" id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4272" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;"><span id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4273" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;">void addsphere(vtkSmartPointer< vtkRenderWindow> renwin) </span><br clear="none" id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4274" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;"><span id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4275" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;">{ </span><br clear="none" id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4276" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;"><span id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4277" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;"> vtkSmartPointer< vtkSphereSource> sphereSource = </span><br clear="none" id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4278" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;"><span id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4279" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;"> vtkSmartPointer< vtkSphereSource>::New(); </span><br clear="none" id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4280" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;"><span id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4281" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;"> sphereSource->SetCenter(0.0, 0.0, 0.0); </span><br clear="none" id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4282" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;"><span id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4283" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;"> sphereSource->SetRadius(5.0); </span><br clear="none" id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4284" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;"><br clear="none" id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4285" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;"><span id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4286" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;"> vtkSmartPointer< vtkPolyDataMapper> mapper = </span><br clear="none" id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4287" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;"><span id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4288" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;"> vtkSmartPointer< vtkPolyDataMapper>::New(); </span><br clear="none" id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4289" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;"><span id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4290" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;"> mapper->SetInputConnection( sphereSource->GetOutputPort()) ; </span><br clear="none" id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4291" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;"><br clear="none" id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4292" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;"><span id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4293" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;"> vtkSmartPointer<vtkActor> actor = </span><br clear="none" id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4294" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;"><span id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4295" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;"> vtkSmartPointer<vtkActor>:: New(); </span><br clear="none" id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4296" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;"><span id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4297" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;"> actor->SetMapper(mapper); </span><br clear="none" id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4298" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;"><br clear="none" id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4299" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;"><span id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4300" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;"> vtkSmartPointer<vtkRenderer> ren = vtkSmartPointer<vtkRenderer>:: New(); </span><br clear="none" id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4301" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;"><span id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4302" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;"> ren->AddActor(actor); </span><br clear="none" id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4303" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;"><span id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4304" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;"> ren->ResetCameraClippingRange( ); </span><br clear="none" id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4305" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;"><br clear="none" id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4306" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;"><span id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4307" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;"> renwin->AddRenderer(ren); </span><br clear="none" id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4308" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;"><span id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4309" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;"> renwin->Render(); </span><br clear="none" id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4310" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;"><span id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4311" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;">} </span><br clear="none" id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4312" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;"><br clear="none" id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4313" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;"><span id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4314" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;">void clear(vtkSmartPointer< vtkRenderWindow> renwin) </span><br clear="none" id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4315" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;"><span id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4316" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;">{ </span><br clear="none" id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4317" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;"><span id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4318" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;"> // clear renderer </span><br clear="none" id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4319" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;"><span id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4320" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;"> vtkSmartPointer<vtkRenderer> ren = </span><br clear="none" id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4321" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;"><span id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4322" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;"> renwin->GetRenderers()-> GetFirstRenderer(); </span><br clear="none" id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4323" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;"><span id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4324" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;"> if (ren) </span><br clear="none" id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4325" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;"><span id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4326" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;"> { </span><br clear="none" id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4327" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;"><span id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4328" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;"> ren->RemoveAllViewProps(); </span><br clear="none" id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4329" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;"><span id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4330" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;"> renwin->Render(); </span><br clear="none" id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4331" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;"><span id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4332" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;"> renwin->RemoveRenderer(ren); </span><br clear="none" id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4333" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;"><span id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4334" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;"> } </span><br clear="none" id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4335" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;"><span id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4336" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;">} </span><br clear="none" id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4337" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;"><br clear="none" id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4338" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;"><span id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4339" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;">// Constructor </span><br clear="none" id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4340" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;"><span id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4341" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;">SideBySideRenderWindowsQt:: SideBySideRenderWindowsQt() </span><br clear="none" id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4342" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;"><span id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4343" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;">{ </span><br clear="none" id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4344" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;"><span id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4345" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;"> this->setupUi(this); </span><br clear="none" id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4346" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;"><br clear="none" id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4347" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;"><span id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4348" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;"> QObject::connect(b1, SIGNAL(released()), this, SLOT(slot_b1())); </span><br clear="none" id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4349" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;"><br clear="none" id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4350" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;"><span id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4351" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;"> // Set up action signals and slots </span><br clear="none" id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4352" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;"><span id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4353" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;"> connect(this->actionExit, SIGNAL(triggered()), this, SLOT(slotExit())); </span><br clear="none" id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4354" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;"><span id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4355" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;">} </span><br clear="none" id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4356" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;"><br clear="none" id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4357" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;"><span id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4358" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;">void SideBySideRenderWindowsQt:: slot_b1() </span><br clear="none" id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4359" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;"><span id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4360" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;">{ </span><br clear="none" id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4361" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;"><span id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4362" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;"> clear(this->qvtkWidgetLeft-> GetRenderWindow()); </span><br clear="none" id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4363" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;"><br clear="none" id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4364" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;"><span id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4365" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;"> addsphere(this-> qvtkWidgetLeft-> GetRenderWindow()); </span><br clear="none" id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4366" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;"><span id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4367" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;"> this->qvtkWidgetLeft-> GetRenderWindow()->Render(); </span><br clear="none" id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4368" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;"><br clear="none" id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4369" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;"><span id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4370" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;"> clear(this->qvtkWidgetRight-> GetRenderWindow()); </span><br clear="none" id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4371" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;"><span id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4372" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;"> </span><br clear="none" id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4373" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;"><span id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4374" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;"> addsphere(this-> qvtkWidgetRight-> GetRenderWindow()); </span><br clear="none" id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4375" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;"><span id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4376" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;"> this->qvtkWidgetRight-> GetRenderWindow()->Render(); </span><br clear="none" id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4377" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;"><span id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4378" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;">} </span><br clear="none" id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4379" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;"><br clear="none" id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4380" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;"><span id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4381" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;">void SideBySideRenderWindowsQt:: slotExit() </span><br clear="none" id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4382" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;"><span id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4383" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;">{ </span><br clear="none" id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4384" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;"><span id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4385" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;"> qApp->exit(); </span><br clear="none" id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4386" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;"><span id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4387" style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.44px;">} </span><span></span></div><div class="yiv3678787505m_-4984388873943024880qtdSeparateBR" id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_3938"><br clear="none"><br clear="none"></div><div class="yiv3678787505m_-4984388873943024880yahoo_quoted" id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_3944" style="display:block;"> <div id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_3943" style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"> <div id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_3942" style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"> <div dir="ltr" id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_3941"> <font id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_3940" size="2" face="Arial"> </font><hr id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_3939" size="1"> <b><span style="font-weight:bold;">From:</span></b> Thales Luis Rodrigues Sabino <<a rel="nofollow" shape="rect" ymailto="mailto:tluisrs@gmail.com" target="_blank" href="mailto:tluisrs@gmail.com">tluisrs@gmail.com</a>><br clear="none"> <b><span style="font-weight:bold;">To:</span></b> Mike Withascarf <<a rel="nofollow" shape="rect" ymailto="mailto:mikewithascarf@yahoo.com" target="_blank" href="mailto:mikewithascarf@yahoo.com">mikewithascarf@yahoo.com</a>> <br clear="none"><b><span style="font-weight:bold;">Cc:</span></b> "<a rel="nofollow" shape="rect" ymailto="mailto:vtkusers@vtk.org" target="_blank" href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>" <<a rel="nofollow" shape="rect" ymailto="mailto:vtkusers@vtk.org" target="_blank" href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>><br clear="none"> <b><span style="font-weight:bold;">Sent:</span></b> Tuesday, November 1, 2016 7:19 PM<br clear="none"> <b><span style="font-weight:bold;">Subject:</span></b> Re: [vtkusers] QT VTK OpenGL errors<br clear="none"> </div> <div class="yiv3678787505m_-4984388873943024880y_msg_container" id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4398"><br clear="none"><div id="yiv3678787505m_-4984388873943024880yiv2714357475"><div id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4397"><div dir="ltr">This looks like an OpenGL resource sharing issue. I don't know exactly how VTK handles multiples windows in a Qt application but it looks like it is trying to bind a texture that is not registered in a certain context.<div><br clear="none"></div><div>Can tell if this happens when you have a single window or this happens only when you add a second window?</div></div><div class="yiv3678787505m_-4984388873943024880yiv2714357475gmail_extra" id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4396"><br clear="none"><div class="yiv3678787505m_-4984388873943024880yiv2714357475gmail_quote" id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4395">On Tue, Nov 1, 2016 at 8:15 PM, Mike Withascarf via vtkusers <span dir="ltr"><<a rel="nofollow" shape="rect" ymailto="mailto:vtkusers@vtk.org" target="_blank" href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>></span> wrote:<br clear="none"><blockquote class="yiv3678787505m_-4984388873943024880yiv2714357475gmail_quote" id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4394" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="yiv3678787505m_-4984388873943024880yiv2714357475yqt1686940766" id="yiv3678787505m_-4984388873943024880yiv2714357475yqt01063"><div id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4393"><div id="yiv3678787505m_-4984388873943024880yui_3_16_0_ym19_1_1478044850231_4392" style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"><div dir="ltr" id="yiv3678787505m_-4984388873943024880yiv2714357475m_-4913760649112231020yui_3_16_0_ym19_1_1478038332580_8836"><span id="yiv3678787505m_-4984388873943024880yiv2714357475m_-4913760649112231020yui_3_16_0_ym19_1_1478038332580_8988">I'm using QT with VTK for a fairly complex application. Everything works fine</span><br clear="none" id="yiv3678787505m_-4984388873943024880yiv2714357475m_-4913760649112231020yui_3_16_0_ym19_1_1478038332580_8989"><span id="yiv3678787505m_-4984388873943024880yiv2714357475m_-4913760649112231020yui_3_16_0_ym19_1_1478038332580_8990">normally, but if I try to use a function to 'clear' the QVTKWidget, and then</span><br clear="none" id="yiv3678787505m_-4984388873943024880yiv2714357475m_-4913760649112231020yui_3_16_0_ym19_1_1478038332580_8991"><span id="yiv3678787505m_-4984388873943024880yiv2714357475m_-4913760649112231020yui_3_16_0_ym19_1_1478038332580_8992">add a new pipeline, I run into lots of OpenGL errors. What would be the</span><br clear="none" id="yiv3678787505m_-4984388873943024880yiv2714357475m_-4913760649112231020yui_3_16_0_ym19_1_1478038332580_8993"><span id="yiv3678787505m_-4984388873943024880yiv2714357475m_-4913760649112231020yui_3_16_0_ym19_1_1478038332580_8994">appropriate way to clear the window/renderer? Here is the code I've been</span><br clear="none" id="yiv3678787505m_-4984388873943024880yiv2714357475m_-4913760649112231020yui_3_16_0_ym19_1_1478038332580_8995"><span id="yiv3678787505m_-4984388873943024880yiv2714357475m_-4913760649112231020yui_3_16_0_ym19_1_1478038332580_8996">trying, where window is of type QVTKWidget:</span><br clear="none" id="yiv3678787505m_-4984388873943024880yiv2714357475m_-4913760649112231020yui_3_16_0_ym19_1_1478038332580_8997"><br clear="none" id="yiv3678787505m_-4984388873943024880yiv2714357475m_-4913760649112231020yui_3_16_0_ym19_1_1478038332580_8998"><span id="yiv3678787505m_-4984388873943024880yiv2714357475m_-4913760649112231020yui_3_16_0_ym19_1_1478038332580_8999">vtkSmartPointer<vtkRenderer> ren_old =</span><br clear="none" id="yiv3678787505m_-4984388873943024880yiv2714357475m_-4913760649112231020yui_3_16_0_ym19_1_1478038332580_9000"><span id="yiv3678787505m_-4984388873943024880yiv2714357475m_-4913760649112231020yui_3_16_0_ym19_1_1478038332580_9001">window->GetRenderWindow()-> GetRenderers()-> GetFirstRenderer();</span><br clear="none" id="yiv3678787505m_-4984388873943024880yiv2714357475m_-4913760649112231020yui_3_16_0_ym19_1_1478038332580_9002"><span id="yiv3678787505m_-4984388873943024880yiv2714357475m_-4913760649112231020yui_3_16_0_ym19_1_1478038332580_9003">if (ren_old) ren_old->RemoveAllViewProps(); // Remove the pipeline from</span><br clear="none" id="yiv3678787505m_-4984388873943024880yiv2714357475m_-4913760649112231020yui_3_16_0_ym19_1_1478038332580_9004"><span id="yiv3678787505m_-4984388873943024880yiv2714357475m_-4913760649112231020yui_3_16_0_ym19_1_1478038332580_9005">renderer</span><br clear="none" id="yiv3678787505m_-4984388873943024880yiv2714357475m_-4913760649112231020yui_3_16_0_ym19_1_1478038332580_9006"><span id="yiv3678787505m_-4984388873943024880yiv2714357475m_-4913760649112231020yui_3_16_0_ym19_1_1478038332580_9007">if (window->isVisible() && window->GetRenderWindow()-> IsDrawable())</span><br clear="none" id="yiv3678787505m_-4984388873943024880yiv2714357475m_-4913760649112231020yui_3_16_0_ym19_1_1478038332580_9008"><span id="yiv3678787505m_-4984388873943024880yiv2714357475m_-4913760649112231020yui_3_16_0_ym19_1_1478038332580_9009">window->GetRenderWindow()-> Render(); // Update the window so it is blank</span><br clear="none" id="yiv3678787505m_-4984388873943024880yiv2714357475m_-4913760649112231020yui_3_16_0_ym19_1_1478038332580_9010"><span id="yiv3678787505m_-4984388873943024880yiv2714357475m_-4913760649112231020yui_3_16_0_ym19_1_1478038332580_9011">if (ren_old) window->GetRenderWindow()-> RemoveRenderer(ren_old); // Remove</span><br clear="none" id="yiv3678787505m_-4984388873943024880yiv2714357475m_-4913760649112231020yui_3_16_0_ym19_1_1478038332580_9012"><span id="yiv3678787505m_-4984388873943024880yiv2714357475m_-4913760649112231020yui_3_16_0_ym19_1_1478038332580_9013">the renderer</span><br clear="none" id="yiv3678787505m_-4984388873943024880yiv2714357475m_-4913760649112231020yui_3_16_0_ym19_1_1478038332580_9014"><br clear="none" id="yiv3678787505m_-4984388873943024880yiv2714357475m_-4913760649112231020yui_3_16_0_ym19_1_1478038332580_9015"><br clear="none" id="yiv3678787505m_-4984388873943024880yiv2714357475m_-4913760649112231020yui_3_16_0_ym19_1_1478038332580_9016"><br clear="none" id="yiv3678787505m_-4984388873943024880yiv2714357475m_-4913760649112231020yui_3_16_0_ym19_1_1478038332580_9017"><span id="yiv3678787505m_-4984388873943024880yiv2714357475m_-4913760649112231020yui_3_16_0_ym19_1_1478038332580_9018">I'm using multiple QVTKWidgets in one app, and each might have a pipeline</span><br clear="none" id="yiv3678787505m_-4984388873943024880yiv2714357475m_-4913760649112231020yui_3_16_0_ym19_1_1478038332580_9019"><span id="yiv3678787505m_-4984388873943024880yiv2714357475m_-4913760649112231020yui_3_16_0_ym19_1_1478038332580_9020">that connects either with vtkImageViewer2 or a normal vtkRenderer. Here are</span><br clear="none" id="yiv3678787505m_-4984388873943024880yiv2714357475m_-4913760649112231020yui_3_16_0_ym19_1_1478038332580_9021"><span id="yiv3678787505m_-4984388873943024880yiv2714357475m_-4913760649112231020yui_3_16_0_ym19_1_1478038332580_9022">the OpenGL errors reported in the vtkOutputWindow:</span><br clear="none" id="yiv3678787505m_-4984388873943024880yiv2714357475m_-4913760649112231020yui_3_16_0_ym19_1_1478038332580_9023"><br clear="none" id="yiv3678787505m_-4984388873943024880yiv2714357475m_-4913760649112231020yui_3_16_0_ym19_1_1478038332580_9024"><span id="yiv3678787505m_-4984388873943024880yiv2714357475m_-4913760649112231020yui_3_16_0_ym19_1_1478038332580_9025">ERROR: In C:\vtk\src\Rendering\OpenGL2\ vtkTextureObject.cxx, line 540</span><br clear="none" id="yiv3678787505m_-4984388873943024880yiv2714357475m_-4913760649112231020yui_3_16_0_ym19_1_1478038332580_9026"><span id="yiv3678787505m_-4984388873943024880yiv2714357475m_-4913760649112231020yui_3_16_0_ym19_1_1478038332580_9027">vtkTextureObject (0000029AC7337C70): failed at glBindTexture 1 OpenGL errors</span><br clear="none" id="yiv3678787505m_-4984388873943024880yiv2714357475m_-4913760649112231020yui_3_16_0_ym19_1_1478038332580_9028"><span id="yiv3678787505m_-4984388873943024880yiv2714357475m_-4913760649112231020yui_3_16_0_ym19_1_1478038332580_9029">detected</span><br clear="none" id="yiv3678787505m_-4984388873943024880yiv2714357475m_-4913760649112231020yui_3_16_0_ym19_1_1478038332580_9030"><span id="yiv3678787505m_-4984388873943024880yiv2714357475m_-4913760649112231020yui_3_16_0_ym19_1_1478038332580_9031"> 0 : (1282) Invalid operation</span><br clear="none" id="yiv3678787505m_-4984388873943024880yiv2714357475m_-4913760649112231020yui_3_16_0_ym19_1_1478038332580_9032"><br clear="none" id="yiv3678787505m_-4984388873943024880yiv2714357475m_-4913760649112231020yui_3_16_0_ym19_1_1478038332580_9033"><br clear="none" id="yiv3678787505m_-4984388873943024880yiv2714357475m_-4913760649112231020yui_3_16_0_ym19_1_1478038332580_9034"><span id="yiv3678787505m_-4984388873943024880yiv2714357475m_-4913760649112231020yui_3_16_0_ym19_1_1478038332580_9035">ERROR: In C:\vtk\src\Rendering\OpenGL2\ vtkTextureObject.cxx, line 554</span><br clear="none" id="yiv3678787505m_-4984388873943024880yiv2714357475m_-4913760649112231020yui_3_16_0_ym19_1_1478038332580_9036"><span id="yiv3678787505m_-4984388873943024880yiv2714357475m_-4913760649112231020yui_3_16_0_ym19_1_1478038332580_9037">vtkTextureObject (0000029AC7337C70): failed at glBindTexture(0) 1 OpenGL</span><br clear="none" id="yiv3678787505m_-4984388873943024880yiv2714357475m_-4913760649112231020yui_3_16_0_ym19_1_1478038332580_9038"><span id="yiv3678787505m_-4984388873943024880yiv2714357475m_-4913760649112231020yui_3_16_0_ym19_1_1478038332580_9039">errors detected</span><br clear="none" id="yiv3678787505m_-4984388873943024880yiv2714357475m_-4913760649112231020yui_3_16_0_ym19_1_1478038332580_9040"><span id="yiv3678787505m_-4984388873943024880yiv2714357475m_-4913760649112231020yui_3_16_0_ym19_1_1478038332580_9041"> 0 : (1282) Invalid operation</span><br clear="none" id="yiv3678787505m_-4984388873943024880yiv2714357475m_-4913760649112231020yui_3_16_0_ym19_1_1478038332580_9042"><br clear="none" id="yiv3678787505m_-4984388873943024880yiv2714357475m_-4913760649112231020yui_3_16_0_ym19_1_1478038332580_9043"><br clear="none" id="yiv3678787505m_-4984388873943024880yiv2714357475m_-4913760649112231020yui_3_16_0_ym19_1_1478038332580_9044"><span id="yiv3678787505m_-4984388873943024880yiv2714357475m_-4913760649112231020yui_3_16_0_ym19_1_1478038332580_9045">ERROR: In C:\vtk\src\Rendering\OpenGL2\ vtkTextureObject.cxx, line 540</span><br clear="none" id="yiv3678787505m_-4984388873943024880yiv2714357475m_-4913760649112231020yui_3_16_0_ym19_1_1478038332580_9046"><span id="yiv3678787505m_-4984388873943024880yiv2714357475m_-4913760649112231020yui_3_16_0_ym19_1_1478038332580_9047">vtkTextureObject (0000029AC7337C70): failed at glBindTexture 1 OpenGL errors</span><br clear="none" id="yiv3678787505m_-4984388873943024880yiv2714357475m_-4913760649112231020yui_3_16_0_ym19_1_1478038332580_9048"><span id="yiv3678787505m_-4984388873943024880yiv2714357475m_-4913760649112231020yui_3_16_0_ym19_1_1478038332580_9049">detected</span><br clear="none" id="yiv3678787505m_-4984388873943024880yiv2714357475m_-4913760649112231020yui_3_16_0_ym19_1_1478038332580_9050"><span id="yiv3678787505m_-4984388873943024880yiv2714357475m_-4913760649112231020yui_3_16_0_ym19_1_1478038332580_9051"> 0 : (1282) Invalid operation</span><br clear="none" id="yiv3678787505m_-4984388873943024880yiv2714357475m_-4913760649112231020yui_3_16_0_ym19_1_1478038332580_9052"><br clear="none" id="yiv3678787505m_-4984388873943024880yiv2714357475m_-4913760649112231020yui_3_16_0_ym19_1_1478038332580_9053"><br clear="none" id="yiv3678787505m_-4984388873943024880yiv2714357475m_-4913760649112231020yui_3_16_0_ym19_1_1478038332580_9054"><span id="yiv3678787505m_-4984388873943024880yiv2714357475m_-4913760649112231020yui_3_16_0_ym19_1_1478038332580_9055">ERROR: In C:\vtk\src\Rendering\OpenGL2\ vtkTextureObject.cxx, line 554</span><br clear="none" id="yiv3678787505m_-4984388873943024880yiv2714357475m_-4913760649112231020yui_3_16_0_ym19_1_1478038332580_9056"><span id="yiv3678787505m_-4984388873943024880yiv2714357475m_-4913760649112231020yui_3_16_0_ym19_1_1478038332580_9057">vtkTextureObject (0000029AC7337C70): failed at glBindTexture(0) 1 OpenGL</span><br clear="none" id="yiv3678787505m_-4984388873943024880yiv2714357475m_-4913760649112231020yui_3_16_0_ym19_1_1478038332580_9058"><span id="yiv3678787505m_-4984388873943024880yiv2714357475m_-4913760649112231020yui_3_16_0_ym19_1_1478038332580_9059">errors detected</span><br clear="none" id="yiv3678787505m_-4984388873943024880yiv2714357475m_-4913760649112231020yui_3_16_0_ym19_1_1478038332580_9060"><span id="yiv3678787505m_-4984388873943024880yiv2714357475m_-4913760649112231020yui_3_16_0_ym19_1_1478038332580_9061"> 0 : (1282) Invalid operation</span><br clear="none"></div></div></div></div><br clear="none">______________________________ _________________<br clear="none">
Powered by <a rel="nofollow" shape="rect" target="_blank" href="http://www.kitware.com/">www.kitware.com</a><br clear="none">
<br clear="none">
Visit other Kitware open-source projects at <a rel="nofollow" shape="rect" target="_blank" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/ opensource/opensource.html</a><br clear="none">
<br clear="none">
Please keep messages on-topic and check the VTK FAQ at: <a rel="nofollow" shape="rect" target="_blank" href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_ FAQ</a><br clear="none">
<br clear="none">
Search the list archives at: <a rel="nofollow" shape="rect" target="_blank" href="http://markmail.org/search/?q=vtkusers">http://markmail.org/search/?q= vtkusers</a><br clear="none">
<br clear="none">
Follow this link to subscribe/unsubscribe:<br clear="none">
<a rel="nofollow" shape="rect" target="_blank" href="http://public.kitware.com/mailman/listinfo/vtkusers">http://public.kitware.com/ mailman/listinfo/vtkusers</a><br clear="none">
<br clear="none"></blockquote></div><span class="yiv3678787505HOEnZb"><font color="#888888"><br clear="none"><br clear="all"></font></span><div><br clear="none"></div>-- <br clear="none"><div class="yiv3678787505m_-4984388873943024880yiv2714357475gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>Thales Luis Rodrigues Sabino</div><div><br clear="none"></div><div>PhD Student at <a rel="nofollow" shape="rect" target="_blank" href="http://www.ufjf.br/pgmc/">PGMC-UFJF</a></div><div><a rel="nofollow" shape="rect" target="_blank" href="http://lattes.cnpq.br/0601030410417146">Lattes</a> | <a rel="nofollow" shape="rect" target="_blank" href="https://br.linkedin.com/in/tluisrs">LinkedIn</a> | <a rel="nofollow" shape="rect" target="_blank" href="https://www.researchgate.net/profile/Thales_Luis_Sabino">ResearchGate</a></div></div></div></div></div>
</div></div></div><br clear="none"><br clear="none"></div> </div> </div> </div></div></div></div><br clear="none">______________________________ _________________<br clear="none">
Powered by <a rel="nofollow" shape="rect" target="_blank" href="http://www.kitware.com/">www.kitware.com</a><br clear="none">
<br clear="none">
Visit other Kitware open-source projects at <a rel="nofollow" shape="rect" target="_blank" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/ opensource/opensource.html</a><br clear="none">
<br clear="none">
Please keep messages on-topic and check the VTK FAQ at: <a rel="nofollow" shape="rect" target="_blank" href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_ FAQ</a><br clear="none">
<br clear="none">
Search the list archives at: <a rel="nofollow" shape="rect" target="_blank" href="http://markmail.org/search/?q=vtkusers">http://markmail.org/search/?q= vtkusers</a><br clear="none">
<br clear="none">
Follow this link to subscribe/unsubscribe:<br clear="none">
<a rel="nofollow" shape="rect" target="_blank" href="http://public.kitware.com/mailman/listinfo/vtkusers">http://public.kitware.com/ mailman/listinfo/vtkusers</a><br clear="none">
<br clear="none"></blockquote></div><br clear="none"><br clear="all"><div><br clear="none"></div>-- <br clear="none"><div class="yiv3678787505gmail_signature">Ken Martin PhD<div>Chairman & CFO<br clear="none">Kitware Inc.<br clear="none">28 Corporate Drive<br clear="none">Clifton Park NY 12065<br clear="none">518 371 3971<div><br clear="none"></div><div><span style="font-size:10pt;font-family:Tahoma, sans-serif;">This communication,
including all attachments, contains confidential and legally privileged
information, and it is intended only for the use of the addressee. Access to this email by anyone else is
unauthorized. If you are not the intended recipient, any disclosure, copying,
distribution or any action taken in reliance on it is prohibited and may be
unlawful. If you received this communication in error please notify us
immediately and destroy the original message.
Thank you.</span></div></div></div>
</div></div></div><br><br></div> </div> </div> </div></div></body></html>