diff options
Diffstat (limited to 'c++/window-opengl')
-rw-r--r-- | c++/window-opengl/gl_xcb.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
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<gpu_context<backend::gl_linux_xcb> > 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<gpu_context<backend::gl_linux_xcb> > 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<gpu_context<backend::gl_linux_xcb> > 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<xcb_gpu_context>(lib_ext, std::move(device), visual_id, + return heap<gpu_context<backend::gl_linux_xcb>>(lib_ext, std::move(device), visual_id, context, fb_config); } |