backends/drm: delete egl layers before the egl backend
Otherwise we don't clean up the OpenGL state correctly, and the egl backend pointer will be dangling
Otherwise we don't clean up the OpenGL state correctly, and the egl backend pointer will be dangling