1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#include "state_tracker/drm_api.h" static struct drm_api swrast_drm_api = { .name = "swrast", }; struct drm_api * drm_api_create() { (void) swrast_drm_api; return NULL; } /* A poor man's --whole-archive for EGL drivers */ void *_eglMain(void *); void *_eglWholeArchive = (void *) _eglMain;