From c43135d740e38814add0e29c7787970d3ca01158 Mon Sep 17 00:00:00 2001 From: Erico Nunes Date: Fri, 11 Aug 2023 12:50:49 +0200 Subject: [PATCH] egl/drm: fix EGL_EXT_buffer_age with gbm contexts Fix remaining dri2 check from 3d59f4cfcbc, which caused gbm contexts to not expose EGL_EXT_buffer_age anymore. Fixes: 3d59f4cfcbc ("egl/drm: Use IMAGE_DRIVER instead of DRI2_LOADER") Reviewed-by: Daniel Stone Signed-off-by: Erico Nunes Part-of: --- src/egl/drivers/dri2/platform_drm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/egl/drivers/dri2/platform_drm.c b/src/egl/drivers/dri2/platform_drm.c index 94d3d52..d894106 100644 --- a/src/egl/drivers/dri2/platform_drm.c +++ b/src/egl/drivers/dri2/platform_drm.c @@ -674,7 +674,7 @@ dri2_initialize_drm(_EGLDisplay *disp) } disp->Extensions.KHR_image_pixmap = EGL_TRUE; - if (dri2_dpy->dri2) + if (dri2_dpy->image_driver) disp->Extensions.EXT_buffer_age = EGL_TRUE; #ifdef HAVE_WAYLAND_PLATFORM -- 2.7.4