<div dir="ltr">Yes, the first patch was not working, but the second patch is ok, and the texture is correctly rendered !<br>Thanks a lot, will this patch be merged in the VTK 6.3.1 release ?<br><br>Simon</div><div class="gmail_extra"><br><div class="gmail_quote">2015-10-30 15:11 GMT+01:00 Ken Martin <span dir="ltr"><<a href="mailto:ken.martin@kitware.com" target="_blank">ken.martin@kitware.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="EN-US" link="blue" vlink="purple"><div><p class="MsoNormal"><a name="150b9169df0e3171__MailEndCompose"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">I think there is an issue with the previous patch, try this patch instead if you can - Ken</span></a></p><span class=""><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Ken Martin PhD</span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Chairman & CFO</span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Kitware Inc.</span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">28 Corporate Drive</span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Clifton Park NY 12065</span></p><p class="MsoNormal"><a href="mailto:ken.martin@kitware.com" target="_blank"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif"">ken.martin@kitware.com</span></a><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">919 869-8871 (w)</span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">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></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span></p></span><p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> <a href="mailto:sesneault@gmail.com" target="_blank">sesneault@gmail.com</a> [mailto:<a href="mailto:sesneault@gmail.com" target="_blank">sesneault@gmail.com</a>] <b>On Behalf Of </b>Simon ESNEAULT<br><b>Sent:</b> Friday, October 30, 2015 9:48 AM<br><b>To:</b> Ken Martin<br><b>Cc:</b> <a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a>; VTK Developers<br><b>Subject:</b> Re: [vtk-developers] [vtkusers] OpenGL2 - Broken vtkTexturedButtonRepresentation2D/vtkButtonWidget</span></p><div><div class="h5"><p class="MsoNormal"> </p><div><p class="MsoNormal" style="margin-bottom:12.0pt">Hello Ken,<br><br>Thanks a lot for working on this issue, I'll try the patch and get back to you soon<br>-Simon<br><br><br></p></div><div><p class="MsoNormal"> </p><div><p class="MsoNormal">2015-10-30 14:38 GMT+01:00 Ken Martin <<a href="mailto:ken.martin@kitware.com" target="_blank">ken.martin@kitware.com</a>>:</p><div><div><p class="MsoNormal"><a name="150b9169df0e3171_150b8f844459807b__MailEndCompose"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Thanks Simon, could you check and see if the attached patch fixes your issue?</span></a></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Thanks</span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Ken</span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Ken Martin PhD</span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Chairman & CFO</span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Kitware Inc.</span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">28 Corporate Drive</span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Clifton Park NY 12065</span></p><p class="MsoNormal"><a href="mailto:ken.martin@kitware.com" target="_blank"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif"">ken.martin@kitware.com</span></a></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">919 869-8871 (w)</span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">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></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span></p><p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> vtk-developers [mailto:<a href="mailto:vtk-developers-bounces@vtk.org" target="_blank">vtk-developers-bounces@vtk.org</a>] <b>On Behalf Of </b>Simon ESNEAULT<br><b>Sent:</b> Tuesday, October 27, 2015 1:52 PM<br><b>To:</b> <a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a>; VTK Developers<br><b>Subject:</b> [vtk-developers] [vtkusers] OpenGL2 - Broken vtkTexturedButtonRepresentation2D/vtkButtonWidget</span></p><div><div><p class="MsoNormal"> </p><div><p class="MsoNormal">Hello All,<br><br>Following our migration to the brand new OpenGL2 backend, the ButtonWidget seem's broken, the button display's a gray texture instead of an image with the new backend. This is visible in all our tested platform (Windows or OSX box)<br><br>The following VTK wiki example reproduce the problem :</p><div><p class="MsoNormal"><a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Widgets/TexturedButtonWidget" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Widgets/TexturedButtonWidget</a></p></div><div><p class="MsoNormal"> </p></div><div><div><div><p class="MsoNormal">OpenGL1 backend result :<br><a href="http://picpaste.com/pics/OGL1_1.1445968197.png" target="_blank">http://picpaste.com/pics/OGL1_1.1445968197.png</a><br><br>OpenGL2 backend result :<br><a href="http://picpaste.com/pics/OGL2_1.1445968221.png" target="_blank">http://picpaste.com/pics/OGL2_1.1445968221.png</a></p></div><div><p class="MsoNormal" style="margin-bottom:12.0pt"><br>Is it a known issue ? Any clue ? In our application we try to load a png image, but it always show a gray/white rectangle instead<br><br>Thanks<br>Simon</p></div><div><p class="MsoNormal"> </p></div><div><p class="MsoNormal"> </p></div><div><p class="MsoNormal"> </p></div><div><p class="MsoNormal"> </p></div><div><p class="MsoNormal"> </p></div><div><p class="MsoNormal"> </p></div><div><p class="MsoNormal"> </p></div><div><p class="MsoNormal"> </p></div><p class="MsoNormal">-- </p><div><div><div><p class="MsoNormal">------------------------------------------------------------------<br>Simon Esneault</p><div><p class="MsoNormal">Rennes, France<br>------------------------------------------------------------------</p></div></div></div></div></div></div></div></div></div></div></div></div><p class="MsoNormal"><br><br clear="all"></p><div><p class="MsoNormal"> </p></div><p class="MsoNormal">-- </p><div><div><div><p class="MsoNormal">------------------------------------------------------------------<br>Simon Esneault</p><div><p class="MsoNormal">Rennes, France<br>------------------------------------------------------------------</p></div></div></div></div></div></div></div></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div>------------------------------------------------------------------<br>Simon Esneault<div>Rennes, France<br>------------------------------------------------------------------</div></div></div></div>
</div>