diff options
author | Emil Velikov <[email protected]> | 2018-08-09 15:05:58 +0100 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2018-08-24 11:52:48 +0100 |
commit | 7eb4a28d41c44d4457a40416305763faaf30ac3c (patch) | |
tree | a177ea21344c5d4a031f2d8d840404adb32a361a /src/egl | |
parent | 2c049384b1638fb25e7f9cfd423500ac19a48b72 (diff) |
egl/drm: use gbm_dri_device() wrapper
Remove the explicit cast, using the appropriate wrapper instead.
Signed-off-by: Emil Velikov <[email protected]>
Reviewed-by: Eric Engestrom <[email protected]>
Acked-by: Daniel Stone <[email protected]>
Diffstat (limited to 'src/egl')
-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 35bc4b5b1ac..d42ef6b2f95 100644 --- a/src/egl/drivers/dri2/platform_drm.c +++ b/src/egl/drivers/dri2/platform_drm.c @@ -45,7 +45,7 @@ lock_front_buffer(struct gbm_surface *_surf) { struct gbm_dri_surface *surf = (struct gbm_dri_surface *) _surf; struct dri2_egl_surface *dri2_surf = surf->dri_private; - struct gbm_dri_device *device = (struct gbm_dri_device *) _surf->gbm; + struct gbm_dri_device *device = gbm_dri_device(_surf->gbm); struct gbm_bo *bo; if (dri2_surf->current == NULL) { |