uterm: video: drm: do not set EGL_DISPLAY
EGL_DISPLAY is a no-op and we probably want to set EGL_PLATFORM. However, it doesn't make any sense to set it, because EGL should be able to properly detect the platform. If this doesn't work on your machine, you should really try fixing your environment before forcing this. If there are corner cases where this doesn't work, you should file a bug against mesa. Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
This commit is contained in:
parent
32677b496e
commit
228a99d4bc
@ -1032,7 +1032,6 @@ static int video_init(struct uterm_video *video, const char *node)
|
|||||||
goto err_close;
|
goto err_close;
|
||||||
}
|
}
|
||||||
|
|
||||||
setenv("EGL_DISPLAY", "drm", 1);
|
|
||||||
drm->disp = eglGetDisplay((EGLNativeDisplayType) drm->gbm);
|
drm->disp = eglGetDisplay((EGLNativeDisplayType) drm->gbm);
|
||||||
if (!drm->disp) {
|
if (!drm->disp) {
|
||||||
log_err("cannot retrieve egl display for %s", node);
|
log_err("cannot retrieve egl display for %s", node);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user