Search code examples
windowsopenglmesa

How to implicitly get opengl 4.2 from Mesa3D


I need opengl 4.2 for my app to run on server(windows). So I found Mesa3D software implementation of opengl will solve my purpose. I built Mesa3D 19.0.0 for windows. But when use opengl32.dll and lib given by Mesa , default version is coming as 3.1 . I tried checking their documentation, I didn't understand how to get Opengl 4.2 .


Solution

  • You'll have to pour a bunch of time/effort/money into the Mesa project.

    Currently their software renderers (softpipe/llvmpipe/swr) only support up to OpenGL 3.3 Core.

    Note that (currently) you'll have to request a Core context to get 3.3. Compatibility contexts are limited to 3.0.

    As of Mesa 20.2 llvmpipe supports OpenGL 4.5.