Don't call gbm symbols when they are not available

pull/65/head
Harm te Hennepe 2022-05-24 23:42:11 +02:00 committed by Andri Yngvason
parent da290abc25
commit 7205139b11
1 changed files with 4 additions and 0 deletions

View File

@ -184,7 +184,11 @@ static void nvnc__fb_free(struct nvnc_fb* fb)
free(fb->addr); free(fb->addr);
break; break;
case NVNC_FB_GBM_BO: case NVNC_FB_GBM_BO:
#ifdef HAVE_GBM
gbm_bo_destroy(fb->bo); gbm_bo_destroy(fb->bo);
#else
abort();
#endif
break; break;
} }