1 diff --git a/ivi-layermanagement-examples/EGLWLMockNavigation/src/OpenGLES2App.cpp b/ivi-layermanagement-examples/EGLWLMockNavigation/src/OpenGLES2App.cpp
2 index 50c3e38..2f4910e 100644
3 --- a/ivi-layermanagement-examples/EGLWLMockNavigation/src/OpenGLES2App.cpp
4 +++ b/ivi-layermanagement-examples/EGLWLMockNavigation/src/OpenGLES2App.cpp
5 @@ -248,7 +248,7 @@ bool OpenGLES2App::createEGLContext(SurfaceConfiguration* config)
6 m_eglContextStruct.eglSurface = NULL;
7 m_eglContextStruct.eglContext = NULL;
9 - m_eglContextStruct.eglDisplay = eglGetDisplay(m_wlContextStruct.wlDisplay);
10 + m_eglContextStruct.eglDisplay = eglGetDisplay((EGLNativeDisplayType)m_wlContextStruct.wlDisplay);
11 if (!m_eglContextStruct.eglDisplay)
13 cout << "Error: eglGetDisplay() failed.\n";