diff options
author | Emil Velikov <[email protected]> | 2017-05-12 15:11:27 +0100 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2017-05-29 16:59:16 +0100 |
commit | 4db5e8322796b2f566a4d16a5c4aaede2c8265f9 (patch) | |
tree | bb995527b9f1d5fa80a9a58e2e9f25eb1cd8ba50 /src/egl/drivers | |
parent | 79d1fb95ee8ba8f1b55f531f0cd5e6ec4062d821 (diff) |
egl/drm: check for dri2_dpy->flush before using the flush extension
The current __DRI_DRI2 imples __DRI2_FLUSH. At the same time, one can
use __DRI_IMAGE_DRIVER alongside the latter, so the current check is
confusing at best.
Check for what we use.
v2: Split out from whitespace changes
Reviewed-by: Chad Versace <[email protected]> (v1)
Signed-off-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src/egl/drivers')
-rw-r--r-- | src/egl/drivers/dri2/platform_drm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/egl/drivers/dri2/platform_drm.c b/src/egl/drivers/dri2/platform_drm.c index 50627a7492d..e8f007f0cd3 100644 --- a/src/egl/drivers/dri2/platform_drm.c +++ b/src/egl/drivers/dri2/platform_drm.c @@ -426,7 +426,7 @@ dri2_drm_swap_buffers(_EGLDriver *drv, _EGLDisplay *disp, _EGLSurface *draw) struct dri2_egl_surface *dri2_surf = dri2_egl_surface(draw); unsigned i; - if (dri2_dpy->swrast) { + if (!dri2_dpy->flush) { dri2_dpy->core->swapBuffers(dri2_surf->dri_drawable); } else { if (dri2_surf->base.Type == EGL_WINDOW_BIT) { |