<div dir="ltr">You should not be getting that error.  Mesa should be providing at least a 3.2 context. That error is for cases when your OpenGL is not providing a 3.2 context. <div><br></div><div>I have no experience with Mesa on windows so I'm not sure how much of the Window specific calls they have implemented. VTK with the OpenGL2 backend makes use of newer wgl calls such as wglCreateContextAttributesARB. If mesa has not provided that function then at runtime it will fall back on trying to use an older context creation method that probably will return an old context without the needed support and fail. We had this issue with OSMesa and the Mesa folks were great and worked with us to add the method we needed into newer releases.</div><div><br></div><div>I'l post something to the Mesa list and see if it rings a bell. I would bet that is the issue. </div><div><br></div><div>On a different track, if you are doing software rendering and running into issues with systems that don't have newer OpenGL support, could you use the old OpenGL backend (by building VTK with VTK_RENDERING_BACKEND set to OpenGL ? Would that solve the issue?</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Sep 29, 2016 at 8:22 AM, ianl <span dir="ltr"><<a href="mailto:ilindsay@insigniamedical.co.uk" target="_blank">ilindsay@insigniamedical.co.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi, I have now managed to get Mesa to build with LLVM 3.7.1 (yay!), thanks to<br>
this post:<br>
<a href="https://www.phoronix.com/forums/forum/linux-graphics-x-org-drivers/opengl-vulkan-mesa-gallium3d/883984-windows-binaries-for-mesa-12-llvmpipe-and-openswr" rel="noreferrer" target="_blank">https://www.phoronix.com/<wbr>forums/forum/linux-graphics-x-<wbr>org-drivers/opengl-vulkan-<wbr>mesa-gallium3d/883984-windows-<wbr>binaries-for-mesa-12-llvmpipe-<wbr>and-openswr</a><br>
<br>
Apparently LLVMipa seems to have been dropped in the newer releases - CMake<br>
does not even generate a project for it. This prevents Mesa from linking -<br>
not sure what is going on here. However, LLVM 3.7.1 does produce this<br>
library and Mesa goes on to build successfully with it.<br>
<br>
I have verified with glview that LLVMPipe is being used.<br>
<br>
However, I still have the warning (as expected from RobertS's post?), and I<br>
get a crash when I set the render window to off screen mode via<br>
SetOffScreenRendering(1). I have checked that I have called<br>
SetMultiSamples(0) on the render window.<br>
<br>
I expect the next thing you will tell me is that Mesa does not support<br>
offscreen rendering. I have seen mention of OSMesa (Off Screen Mesa?) in the<br>
VTK CMake config - is this worth pursuing?<br>
<br>
An interesting additional piece of information here is that the old build of<br>
VTK we were using (6.1) works fine (with off screen rendering) with the new<br>
Mesa opengl.dll built above (but slowly as you would expect).<br>
<br>
Any further ideas, or am I flogging a dead horse here?<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/OpenGL2-using-mesa-tp5740561p5740585.html" rel="noreferrer" target="_blank">http://vtk.1045678.n5.nabble.<wbr>com/OpenGL2-using-mesa-<wbr>tp5740561p5740585.html</a><br>
Sent from the VTK - Users mailing list archive at Nabble.com.<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="http://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/vtkusers</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Ken Martin PhD<div>Chairman & CFO<br>Kitware Inc.<br>28 Corporate Drive<br>Clifton Park NY 12065<br>518 371 3971<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>