<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"><meta name="Generator" content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style></head><body lang="EN-US" link="blue" vlink="purple"><div class="WordSection1"><p class="MsoNormal"><a name="_MailEndCompose"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">With the new rendering backend in VTK we are using a more recent version of OpenGL (version 3.2 typically).  There are still some spots where old calls are made that no longer work with newer versions of OpenGL. As we find them we fix them so they should be fairly rare with the current VTK tree now.  Typically they just produce an error and get ignored by OpenGL and everything works. </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><div><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"><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></div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span></p><div><div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0in 0in 0in"><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""> vtkusers [mailto:<a href="mailto:vtkusers-bounces@vtk.org">vtkusers-bounces@vtk.org</a>] <b>On Behalf Of </b>Audrius Stundzia<br><b>Sent:</b> Monday, September 21, 2015 1:10 PM<br><b>To:</b> VTK Users<br><b>Subject:</b> [vtkusers] vtk 6.3.0 | OpenGL2: OpenGL errors?</span></p></div></div><p class="MsoNormal"> </p><div><p class="MsoNormal">Hello,</p></div><div><p class="MsoNormal"> </p></div><div><p class="MsoNormal">OS: Windows 10 x64</p></div><div><p class="MsoNormal">IDE: MS VS2015 x64</p></div><div><p class="MsoNormal">CMake: </p></div><div><p class="MsoNormal">VTK_RENDERING_BACKEND OpenGL2</p></div><div><p class="MsoNormal">VTK_REPORT_OPENGL_ERRORS [Checkmark - On]</p></div><div><p class="MsoNormal">VTK: 6.3.0 x64 Debug build</p></div><div><p class="MsoNormal"> </p></div><div><p class="MsoNormal">In stdafx.h, have</p></div><div><p class="MsoNormal"> </p></div><div><p class="MsoNormal">#include <vtkOpenGLError.h></p></div><div><p class="MsoNormal"> </p></div><div><p class="MsoNormal">Encountering the following runtime error message:</p></div><div><p class="MsoNormal"> </p></div><div><p class="MsoNormal">Error in ...\OpenGL2\vtkOpenGLRenderer.cxx, line 351</p></div><div><p class="MsoNormal">vtkOpenGLRenderer [...]: failed after Clear 16 OpenGL errors detected</p></div><div><p class="MsoNormal">0:[1282] Invalid Operation</p></div><div><p class="MsoNormal">...</p></div><div><p class="MsoNormal">15:[1282] Invalid Operation</p></div><div><p class="MsoNormal"> </p></div><div><p class="MsoNormal">in previously working code, in vtk 5.10.1, that texture maps an image onto a plane.</p></div><div><p class="MsoNormal">The image is displayed as before, however, it is accompanied by the above error message.</p></div><div><p class="MsoNormal"> </p></div><div><p class="MsoNormal">A Google search suggests that this may be a GLSL version issue: </p></div><div><p class="MsoNormal"> </p></div><div><p class="MsoNormal"><a href="https://stackoverflow.com/questions/31323870/opengl-error-1282-invalid-operation-when-using-texture">https://stackoverflow.com/questions/31323870/opengl-error-1282-invalid-operation-when-using-texture</a></p></div><div><p class="MsoNormal"> </p></div><div><p class="MsoNormal">Also, attempting to add the vtk line of code</p></div><div><p class="MsoNormal"> </p></div><div><p class="MsoNormal">vtkOpenGLClearErrorMacro();</p></div><div><p class="MsoNormal"> </p></div><div><p class="MsoNormal">generates the following error message:</p></div><div><p class="MsoNormal"> </p></div><div><p class="MsoNormal">error LNK2019: unresolved external symbol __imp_glGetError referenced in function "void __cdecl vtkClearOpenGLErrors(unsigned int)" (?vtkClearOpenGLErrors@@YAXI@Z)</p></div><div><p class="MsoNormal"> </p></div><div><p class="MsoNormal">Please advise.</p></div><div><p class="MsoNormal"> </p></div><div><p class="MsoNormal"> </p></div></div></body></html>