diff options
-rw-r--r-- | c++/window-opengl/gl_context.h | 2 | ||||
-rw-r--r-- | c++/window-opengl/gl_xcb.cpp | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/c++/window-opengl/gl_context.h b/c++/window-opengl/gl_context.h index 9f684fb..685e527 100644 --- a/c++/window-opengl/gl_context.h +++ b/c++/window-opengl/gl_context.h @@ -36,7 +36,7 @@ public: }; template<typename T> -class gl_context; +class gpu_context; } diff --git a/c++/window-opengl/gl_xcb.cpp b/c++/window-opengl/gl_xcb.cpp index 5babaf2..ed4e40b 100644 --- a/c++/window-opengl/gl_xcb.cpp +++ b/c++/window-opengl/gl_xcb.cpp @@ -60,10 +60,10 @@ int translate_drawable_type_setting(gl_settings::drawable_type cmp){ } } -gpu_context<backend::gl_linux_xcb>::gl_context(const glx_library_extensions& ext_lib, +gpu_context<backend::gl_linux_xcb>::gpu_context(const glx_library_extensions& ext_lib, own<device<backend::linux_xcb>> dev, int visual_id, GLXContext context, GLXFBConfig fb_config): ext_lib_{ext_lib}, device_{std::move(dev)}, visual_id_{visual_id}, context_{context}, fb_config_{fb_config}{} -gpu_context<backend::gl_linux_xcb>::~gl_context(){ +gpu_context<backend::gl_linux_xcb>::~gpu_context(){ assert(device_); assert(device_->get_xcb_display()); @@ -97,7 +97,7 @@ void gpu_context<backend::gl_linux_xcb>::flush(){ } } -own<gpu_context<backend::gl_linux_xcb> > create_gl_context(io_provider& prov, const gl_settings& settings){ +own<gpu_context<backend::gl_linux_xcb> > create_gpu_context(io_provider& prov, const gl_settings& settings){ own<device<backend::linux_xcb>> device = create_xcb_device(prov); if (!device) { return nullptr; |