#include /* This is a temporary hack until Mesa upstream adds 2 lines to their code. https://gitlab.freedesktop.org/mesa/mesa/-/issues/8929 */ void* __driDriverGetExtensions_simpledrm(void) { static void*(*ddge_mediatek)(void); if(!ddge_mediatek) ddge_mediatek = dlsym(dlopen("/usr/lib/xorg/modules/dri/mediatek_dri.so", RTLD_NOW), "__driDriverGetExtensions_mediatek"); return ddge_mediatek(); }