From ca990e36ffa21bb275e0b55fa783c28030b357fe Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Tue, 19 Sep 2023 16:27:49 +0200 Subject: window,window-opengl: Fixing up calls to private fields --- c++/window-opengl/gl_xcb.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'c++/window-opengl') diff --git a/c++/window-opengl/gl_xcb.cpp b/c++/window-opengl/gl_xcb.cpp index f356307..26eb8cd 100644 --- a/c++/window-opengl/gl_xcb.cpp +++ b/c++/window-opengl/gl_xcb.cpp @@ -117,7 +117,7 @@ own > create_gl_context(io_provider& prov, co attributes.push_back(settings.renderable ? True : False); attributes.push_back(GLX_RENDER_TYPE); - attributes.push_back(translate_render_type_setting(settings.render_type)); + attributes.push_back(translate_render_type_setting(settings.render_t)); attributes.push_back(GLX_RED_SIZE); attributes.push_back(settings.red_bits); @@ -142,7 +142,7 @@ own > create_gl_context(io_provider& prov, co attributes.push_back(GLX_DRAWABLE_TYPE); attributes.push_back( - translate_drawable_type_setting(settings.drawable_type)); + translate_drawable_type_setting(settings.drawable_t)); attributes.push_back(GLX_X_VISUAL_TYPE); attributes.push_back(GLX_TRUE_COLOR); @@ -180,16 +180,16 @@ own > create_gl_context(io_provider& prov, co glx_attribs.push_back(None); context = lib_ext.glXCreateContextAttribsARB( - device->display, fb_config, NULL, True, &glx_attribs[0]); + device->get_xcb_display(), fb_config, NULL, True, &glx_attribs[0]); ::XFree(fb_configs); if (!context) { return nullptr; } int visual_id = 0; - glXGetFBConfigAttrib(device->display, fb_config, GLX_VISUAL_ID, + glXGetFBConfigAttrib(device->get_xcb_display(), fb_config, GLX_VISUAL_ID, &visual_id); - return heap(lib_ext, std::move(device), visual_id, + return heap>(lib_ext, std::move(device), visual_id, context, fb_config); } -- cgit v1.2.3