diff options
author | Eric Engestrom <[email protected]> | 2020-07-11 00:40:57 +0200 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-07-16 22:11:25 +0000 |
commit | c5fb1fbc9b92dcf26e749783b7a482e158f28883 (patch) | |
tree | 4fc607b158095746902ef0f583eb64f054f7c6d8 /src/egl/drivers/dri2/egl_dri2.c | |
parent | 90000b0264d05e0a84a5fcfd7a00835b12a9cc11 (diff) |
egl: inline fallback for query_buffer_age
Signed-off-by: Eric Engestrom <[email protected]>
Reviewed-by: Frank Binns <[email protected]>
Reviewed-by: Emil Velikov <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5861>
Diffstat (limited to 'src/egl/drivers/dri2/egl_dri2.c')
-rw-r--r-- | src/egl/drivers/dri2/egl_dri2.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/egl/drivers/dri2/egl_dri2.c b/src/egl/drivers/dri2/egl_dri2.c index e118509819f..08c91984904 100644 --- a/src/egl/drivers/dri2/egl_dri2.c +++ b/src/egl/drivers/dri2/egl_dri2.c @@ -2067,6 +2067,8 @@ static EGLint dri2_query_buffer_age(_EGLDriver *drv, _EGLDisplay *disp, _EGLSurface *surf) { struct dri2_egl_display *dri2_dpy = dri2_egl_display(disp); + if (!dri2_dpy->vtbl->query_buffer_age) + return 0; return dri2_dpy->vtbl->query_buffer_age(drv, disp, surf); } |