diff options
Diffstat (limited to 'src/gbm/backends')
-rw-r--r-- | src/gbm/backends/dri/gbm_dri.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/gbm/backends/dri/gbm_dri.c b/src/gbm/backends/dri/gbm_dri.c index 39e6b30d473..c5136723162 100644 --- a/src/gbm/backends/dri/gbm_dri.c +++ b/src/gbm/backends/dri/gbm_dri.c @@ -404,8 +404,7 @@ dri_load_driver_swrast(struct gbm_dri_device *dri) } static int -dri_screen_create_dri2(struct gbm_dri_device *dri, - const char *driver_name) +dri_screen_create_dri2(struct gbm_dri_device *dri, char *driver_name) { const __DRIextension **extensions; int ret = 0; @@ -495,7 +494,7 @@ dri_screen_create_swrast(struct gbm_dri_device *dri) static int dri_screen_create(struct gbm_dri_device *dri) { - const char *driver_name; + char *driver_name; driver_name = loader_get_driver_for_fd(dri->base.base.fd, 0); if (!driver_name) @@ -507,7 +506,7 @@ dri_screen_create(struct gbm_dri_device *dri) static int dri_screen_create_sw(struct gbm_dri_device *dri) { - const char *driver_name; + char *driver_name; int ret; driver_name = strdup("kms_swrast"); |