@@ -115,13 +115,18 @@ struct OpenGLGraphicsPlugin : public IGraphicsPlugin {
115115 m_graphicsBinding.hDC = window.context .hDC ;
116116 m_graphicsBinding.hGLRC = window.context .hGLRC ;
117117#elif defined(XR_USE_PLATFORM_XLIB)
118- // TODO: Just need something other than NULL here for now (for validation). Eventually need
119- // to correctly put in a valid pointer to an Display
120- m_graphicsBinding.xDisplay = reinterpret_cast <Display*>(0xFFFFFFFF );
118+ m_graphicsBinding.xDisplay = window.context .xDisplay ;
119+ m_graphicsBinding.visualid = window.context .visualid ;
120+ m_graphicsBinding.glxFBConfig = window.context .glxFBConfig ;
121+ m_graphicsBinding.glxDrawable = window.context .glxDrawable ;
122+ m_graphicsBinding.glxContext = window.context .glxContext ;
121123#elif defined(XR_USE_PLATFORM_XCB)
122- // TODO: Just need something other than NULL here for now (for validation). Eventually need
123- // to correctly put in a valid pointer to an xcb_connection_t
124- m_graphicsBinding.connection = reinterpret_cast <xcb_connection_t *>(0xFFFFFFFF );
124+ m_graphicsBinding.connection = window.context .connection ;
125+ m_graphicsBinding.screenNumber = window.context .screenNumber ;
126+ m_graphicsBinding.fbconfigid = window.context .fbconfigid ;
127+ m_graphicsBinding.visualid = window.context .visualid ;
128+ m_graphicsBinding.glxDrawable = window.context .glxDrawable ;
129+ m_graphicsBinding.glxContext = window.context .glxContext ;
125130#elif defined(XR_USE_PLATFORM_WAYLAND)
126131 // TODO: Just need something other than NULL here for now (for validation). Eventually need
127132 // to correctly put in a valid pointer to an wl_display
0 commit comments