egl/haiku: Fix reference to disp vs dpy
authorAlexander von Gluck IV <kallisti5@unixzen.com>
Thu, 27 Dec 2018 20:41:47 +0000 (20:41 +0000)
committerEric Engestrom <eric.engestrom@intel.com>
Wed, 2 Jan 2019 13:45:09 +0000 (13:45 +0000)
Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
Fixes: 00992700c9a812a54563 "egl: set the EGLDevice when creating a display"
src/egl/drivers/haiku/egl_haiku.cpp

index a9c5cf8d29bb05540190ec44b9d6eb08a81f2632..d4b046c79b419fbe11f07d63fb347ecfdf9dc7a3 100644 (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))