cinder / Cinder

Cinder is a community-developed, free and open source library for professional-quality creative coding in C++.
http://libcinder.org
Other
5.34k stars 944 forks source link

OSMesa/glad headless fix #2228

Closed PetrosKataras closed 3 years ago

PetrosKataras commented 3 years ago

Fixes a crash that manifested when linking against a packaged version of OSMesa and was caused by improper initialisation of the appropriate GL function pointers.

It also adds a more modern version of the FindOSMesa.cmake script for finding and linking against the library.

Tested on Ubuntu 20.04 with libosmesa6-dev ( Mesa 20.2.6 )

andrewfb commented 3 years ago

Thanks for this Petros - tested on both Ubuntu 18.04 and 20.04 with default packages and a built-from-source Mesa.