gl-renderer: log rendering device
Feels like this might be nice to log. The failure case is not fatal, so say it's a warning only. Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
This commit is contained in:
parent
f3bf7a0d5a
commit
2f115047de
@ -490,8 +490,10 @@ gl_renderer_set_egl_device(struct gl_renderer *gr)
|
||||
gr->drm_device = gr->query_device_string(gr->egl_device,
|
||||
EGL_DRM_DEVICE_FILE_EXT);
|
||||
|
||||
if (!gr->drm_device)
|
||||
weston_log("failed to query DRM device from EGL\n");
|
||||
if (gr->drm_device)
|
||||
weston_log("Using rendering device: %s\n", gr->drm_device);
|
||||
else
|
||||
weston_log("warning: failed to query rendering device from EGL\n");
|
||||
}
|
||||
|
||||
int
|
||||
|
Loading…
Reference in New Issue
Block a user