From 7a49e4c2298a8b8e5118db047338e1ee0732bc29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Tue, 29 Dec 2015 20:57:35 -0800 Subject: [PATCH] Cleanup. --- src/glcontext_egl.cpp | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/glcontext_egl.cpp b/src/glcontext_egl.cpp index 387fd811..ef1c9571 100644 --- a/src/glcontext_egl.cpp +++ b/src/glcontext_egl.cpp @@ -146,13 +146,6 @@ EGL_IMPORT # if BX_PLATFORM_RPI static EGL_DISPMANX_WINDOW_T s_dispmanWindow; - - void x11SetDisplayWindow(::Display* _display, ::Window _window) - { - // Noop for now... - BX_UNUSED(_display, _window); - g_platformData.ndt = EGL_DEFAULT_DISPLAY; - } # endif // BX_PLATFORM_RPI void GlContext::create(uint32_t _width, uint32_t _height) @@ -165,6 +158,10 @@ EGL_IMPORT if (NULL == g_platformData.context) { +# if BX_PLATFORM_RPI + g_platformData.ndt = EGL_DEFAULT_DISPLAY; +# endif // BX_PLATFORM_RPI + BX_UNUSED(_width, _height); EGLNativeDisplayType ndt = (EGLNativeDisplayType)g_platformData.ndt; EGLNativeWindowType nwh = (EGLNativeWindowType )g_platformData.nwh;