glamor_egl: Stop saving the EGL major/minor version.

We don't use them for anything.

Signed-off-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
Eric Anholt 2017-05-09 15:33:21 -07:00
parent 1f38a31ed3
commit fd0d2523a3

View File

@ -50,7 +50,6 @@
struct glamor_egl_screen_private { struct glamor_egl_screen_private {
EGLDisplay display; EGLDisplay display;
EGLContext context; EGLContext context;
EGLint major, minor;
char *device_path; char *device_path;
CreateScreenResourcesProcPtr CreateScreenResources; CreateScreenResourcesProcPtr CreateScreenResources;
@ -648,8 +647,7 @@ glamor_egl_init(ScrnInfoPtr scrn, int fd)
goto error; goto error;
} }
if (!eglInitialize if (!eglInitialize(glamor_egl->display, NULL, NULL)) {
(glamor_egl->display, &glamor_egl->major, &glamor_egl->minor)) {
xf86DrvMsg(scrn->scrnIndex, X_ERROR, "eglInitialize() failed\n"); xf86DrvMsg(scrn->scrnIndex, X_ERROR, "eglInitialize() failed\n");
glamor_egl->display = EGL_NO_DISPLAY; glamor_egl->display = EGL_NO_DISPLAY;
goto error; goto error;