Don't terminate DRM display if it's null
This commit is contained in:
parent
ef20b58895
commit
347b306d21
@ -112,6 +112,7 @@ void cleanup()
|
|||||||
drmModeFreeEncoder(drmNode.savedEncoder);
|
drmModeFreeEncoder(drmNode.savedEncoder);
|
||||||
drmModeFreeCrtc(drmNode.originalCrtc);
|
drmModeFreeCrtc(drmNode.originalCrtc);
|
||||||
|
|
||||||
|
if (display != EGL_NO_DISPLAY)
|
||||||
eglTerminate(display);
|
eglTerminate(display);
|
||||||
display = EGL_NO_DISPLAY;
|
display = EGL_NO_DISPLAY;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user