summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaudius "keldu" Holeksa <mail@keldu.de>2023-09-19 16:27:49 +0200
committerClaudius "keldu" Holeksa <mail@keldu.de>2023-09-19 16:27:49 +0200
commitca990e36ffa21bb275e0b55fa783c28030b357fe (patch)
treee08c1016a2a815ae45d6d9970394ea4df9f31f2d
parentad8f97071acc96dad7ec47e553cebc0e67ecdb90 (diff)
window,window-opengl: Fixing up calls to private fields
-rw-r--r--c++/window-opengl/gl_xcb.cpp10
-rw-r--r--c++/window/xcb.h1
2 files changed, 5 insertions, 6 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);
}
diff --git a/c++/window/xcb.h b/c++/window/xcb.h
index 902ea17..a2a9b0b 100644
--- a/c++/window/xcb.h
+++ b/c++/window/xcb.h
@@ -54,7 +54,6 @@ public:
void flush();
// XCB specific info for other classes
-
::Display* get_xcb_display() {
return display_;
}