gbm: inline DRI_IMAGE_DRIVER

Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30472>
This commit is contained in:
Mike Blumenkrantz
2024-07-26 15:43:35 -04:00
committed by Marge Bot
parent 703261c393
commit ea1855caba
+4 -5
View File
@@ -1081,11 +1081,10 @@ gbm_dri_bo_map(struct gbm_bo *_bo,
if (!dri->context) {
unsigned error;
dri->context =
dri->image_driver->createContextAttribs(dri->screen,
__DRI_API_OPENGL,
NULL, NULL, 0, NULL,
&error, NULL);
dri->context = driCreateContextAttribs(dri->screen,
__DRI_API_OPENGL,
NULL, NULL, 0, NULL,
&error, NULL);
}
assert(dri->context);
mtx_unlock(&dri->mutex);