diff options
Diffstat (limited to 'test/setup.c')
-rw-r--r-- | test/setup.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/test/setup.c b/test/setup.c index a39868c..cdd8d7f 100644 --- a/test/setup.c +++ b/test/setup.c @@ -115,8 +115,6 @@ page_flip_handler(int fd, unsigned int frame, static void run_native(int x, int y, int width, int height, init_func_t init, render_func_t render) { EGLint major, minor; - struct udev *udev; - struct udev_device *device; struct state state; drmModeConnector *connector; drmModeRes *resources; @@ -131,11 +129,9 @@ static void run_native(int x, int y, int width, int height, init_func_t init, re GLuint rb; } b[2]; - udev = udev_new(); - device = udev_device_new_from_syspath(udev, "/sys/class/drm/card0"); state.width = width; state.height = height; - state.display = eglCreateDisplayNative(device); + state.display = eglGetDisplay(EGL_DEFAULT_DISPLAY); if (state.display == NULL) die("failed to create display\n"); |