egl: check if driver_name is null
This commit is contained in:
parent
9e1550dbaf
commit
daea9270f8
|
@ -70,6 +70,7 @@ native_create_probe(EGLNativeDisplayType dpy)
|
||||||
if (xscr) {
|
if (xscr) {
|
||||||
if (x11_screen_support(xscr, X11_SCREEN_EXTENSION_DRI2)) {
|
if (x11_screen_support(xscr, X11_SCREEN_EXTENSION_DRI2)) {
|
||||||
driver_name = x11_screen_probe_dri2(xscr);
|
driver_name = x11_screen_probe_dri2(xscr);
|
||||||
|
if (driver_name)
|
||||||
nprobe->data = strdup(driver_name);
|
nprobe->data = strdup(driver_name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue