<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jan 30, 2018 at 3:17 PM, Langer, Stephen A. (Fed) <span dir="ltr"><<a href="mailto:stephen.langer@nist.gov" target="_blank">stephen.langer@nist.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">>From within vtkXOpenGLRenderWindow::<wbr>WindowInitialize():<br>
<br>
(1)  vtkXOpenGLRenderWindow::<wbr>CreateAWindow(),  in the block under the comment "try for 32 context", is successfully creating an OpenGL 4.5 context (independent of the value of MESA_GL_VERSION_OVERRIDE).<br>
<br></blockquote><div><br></div><div>That is good.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
(2) Then vtkOpenGLRenderWindow::<wbr>OpenGLInitContext() calls glewInit() and finds that GLEW_VERSION_3_1 and GLEW_VERSION_3_2 aren't set, which they should be if the GL version is 4.5, right?   I don't really understand the difference between GL_VERSION and GLEW_VERSION_x_y.<br>
<br></blockquote><div><br></div><div>Yes, with 4.5 you also have 3.1 and 3.2. The glew that comes with VTK is modified to fix an issue in the original glew that caused glew to think it did not have 3.1/3.2 when on OSX. Maybe somehow a system glew is still being picked up. </div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Changing the setting of VTK_USE_SYSTEM_GLEW doesn't affect this behavior.  I made sure to uninstall macports' glew after turning off VTK_USE_SYSTEM_GLEW.<br>
<br>
Sorry about forgetting to CC the list earlier!<br>
<br>
 -- Steve<br>
<br>
On 1/30/18, 9:33 AM, "Ben Boeckel" <<a href="mailto:ben.boeckel@kitware.com">ben.boeckel@kitware.com</a>> wrote:<br>
<br>
    [ Adding the list back to CC. Please keep the list in the loop. ]<br>
<br>
    On Tue, Jan 30, 2018 at 03:17:25 +0000, Langer, Stephen A. (Fed) wrote:<br>
    > I'm not explicitly requesting any profile -- I'm just trying to use<br>
    > vtkXOpenGLRenderWindow, which is being created by<br>
    > vtkRenderWindow::New().<br>
<br>
    I asked since you said you were looking at the requests; I assume the<br>
    profile is in there around the same area.<br>
<br>
    > Is MESA_GL_OVERRIDE a run time variable, or do I set it when building<br>
    > mesa or vtk?  Setting it at run time doesn't do anything, unless I'm<br>
    > doing it wrong.. I tried<br>
<br>
    Sorry, I have this one history item floating around that I really need<br>
    to purge (done now). It's actually called `MESA_GL_VERSION_OVERRIDE`.<br>
<br>
    >    % MESA_GL_OVERRIDE=3.2 [my program]<br>
    > and it gave the same warnings as before.<br>
<br>
    This is the right way of using it, just the wrong name :) .<br>
<br>
    --Ben<br>
<br>
<br>
______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_<wbr>FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://vtk.org/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">https://vtk.org/mailman/<wbr>listinfo/vtkusers</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Ken Martin PhD<div>Distinguished Engineer<br><span style="font-size:12.8px">Kitware Inc.</span><br></div><div>28 Corporate Drive<br>Clifton Park NY 12065<br><div><br></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></div>