Public bug reported:

If the --enable-osmesa in the mesa configuration were replaced with
--enable-gallium-osmesa, then the OSMesaCreateContextAttribs would be
able to return OpenGL core contexts.  To show this I'm attaching a
modified version of mesa-demos-8.4.0/src/osdemos/osdemo.c (from
ftp://ftp.freedesktop.org/pub/mesa/demos/mesa-demos-8.4.0.tar.gz).  The
modified code is all within the #ifdef USE_CORE_CONTEXT.  To compile it,
do "gcc osdemo.c -lGLU -lOSMesa -lm".  With the libOSMesa.so.8 from
Ubuntu 18.04, it fails with "OSMesaCreateContext failed!".  But with a
libOSmesa.so from a mesa that is configured with --enable-galliums-
osmesa instead of --enable-osmesa, it works!

Also note that libOSMesa.so on Ubuntu 18.04 only supports OpenGL 2.1.
While --enable-gallium-osmesa gets it up to OpenGL 3.3.  My testing was
with mesa 17.3.9 and mesa 18.2.5.

** Affects: mesa (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1803681

Title:
  osmesa doesn't suport core contexts but could

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mesa/+bug/1803681/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to