[vtkusers] vtk getting wrong OpenGL version number from mesa and macports
Ken Martin
ken.martin at kitware.com
Tue Jan 30 15:55:38 EST 2018
On Tue, Jan 30, 2018 at 3:17 PM, Langer, Stephen A. (Fed) <
stephen.langer at nist.gov> wrote:
> From within vtkXOpenGLRenderWindow::WindowInitialize():
>
> (1) vtkXOpenGLRenderWindow::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).
>
>
That is good.
> (2) Then vtkOpenGLRenderWindow::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.
>
>
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.
> 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.
>
> Sorry about forgetting to CC the list earlier!
>
> -- Steve
>
> On 1/30/18, 9:33 AM, "Ben Boeckel" <ben.boeckel at kitware.com> wrote:
>
> [ Adding the list back to CC. Please keep the list in the loop. ]
>
> On Tue, Jan 30, 2018 at 03:17:25 +0000, Langer, Stephen A. (Fed) wrote:
> > I'm not explicitly requesting any profile -- I'm just trying to use
> > vtkXOpenGLRenderWindow, which is being created by
> > vtkRenderWindow::New().
>
> I asked since you said you were looking at the requests; I assume the
> profile is in there around the same area.
>
> > Is MESA_GL_OVERRIDE a run time variable, or do I set it when building
> > mesa or vtk? Setting it at run time doesn't do anything, unless I'm
> > doing it wrong.. I tried
>
> Sorry, I have this one history item floating around that I really need
> to purge (done now). It's actually called `MESA_GL_VERSION_OVERRIDE`.
>
> > % MESA_GL_OVERRIDE=3.2 [my program]
> > and it gave the same warnings as before.
>
> This is the right way of using it, just the wrong name :) .
>
> --Ben
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> https://vtk.org/mailman/listinfo/vtkusers
>
--
Ken Martin PhD
Distinguished Engineer
Kitware Inc.
28 Corporate Drive
Clifton Park NY 12065
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://vtk.org/pipermail/vtkusers/attachments/20180130/b5e808cb/attachment.html>
More information about the vtkusers
mailing list