egl/haiku: Fix reference to disp vs dpy

Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
Fixes: 00992700c9 "egl: set the EGLDevice when creating a display"
(cherry picked from commit 1b97a72328)
This commit is contained in:
Alexander von Gluck IV 2018-12-27 20:41:47 +00:00 committed by Emil Velikov
parent a7a8f906d4
commit 65f7c84835

View file

@ -29,6 +29,7 @@
#include "eglconfig.h"
#include "eglcontext.h"
#include "egldevice.h"
#include "egldisplay.h"
#include "egldriver.h"
#include "eglcurrent.h"
@ -215,7 +216,7 @@ init_haiku(_EGLDriver *drv, _EGLDisplay *dpy)
_eglError(EGL_NOT_INITIALIZED, "DRI2: failed to find EGLDevice");
return EGL_FALSE;
}
disp->Device = dev;
dpy->Device = dev;
TRACE("Add configs\n");
if (!haiku_add_configs_for_visuals(dpy))