[PyOpenGL-Devel] Patch for OpenGL 3+ contexts via OSMesa
Brought to you by:
mcfletch
From: Matthew M. <mat...@gm...> - 2019-01-19 23:42:28
|
Hi Mike, Big fan of PyOpenGL! Just wanted to offer this simple patch for the most recent version of master, which adds a handle for OSMesa's OSMesaCreateContextAttribs <https://github.com/anholt/mesa/blob/01e511233b24872b08bff862ff692dfb5b22c1f4/include/GL/osmesa.h#L167> function. This function allows for users to create OSMesa contexts with core profiles, which is hugely useful for supporting offscreen rendering with modern (>=3.3) shaders. My only concern is that this function is new in Mesa 11.2, which was released on April 4, 2016, so this might not work with older Mesa versions. Not sure if the compilation system will handle this smoothly or not. Suggestions are welcome, happy to help modify this as needed. Best, Matthew Matl UC Berkeley EECS PhD Candidate |