From 4fbd1d34b18c25e1dcee465dc5d6633618e3afd7 Mon Sep 17 00:00:00 2001 From: Chris Thrasher Date: Tue, 28 May 2024 06:28:48 +0000 Subject: [PATCH] Use delegating constructor --- src/SFML/Window/Unix/GlxContext.cpp | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/src/SFML/Window/Unix/GlxContext.cpp b/src/SFML/Window/Unix/GlxContext.cpp index b7e7d3723..028c05f96 100644 --- a/src/SFML/Window/Unix/GlxContext.cpp +++ b/src/SFML/Window/Unix/GlxContext.cpp @@ -107,22 +107,8 @@ private: namespace sf::priv { //////////////////////////////////////////////////////////// -GlxContext::GlxContext(GlxContext* shared) +GlxContext::GlxContext(GlxContext* shared) : GlxContext(shared, {}, {1, 1}) { - // Save the creation settings - m_settings = ContextSettings{}; - - // Open the connection with the X server - m_display = openDisplay(); - - // Make sure that extensions are initialized - ensureExtensionsInit(m_display.get(), DefaultScreen(m_display.get())); - - // Create the rendering surface (window or pbuffer if supported) - createSurface(shared, {1, 1}, VideoMode::getDesktopMode().bitsPerPixel); - - // Create the context - createContext(shared); }