From 93410afdc7c6b441e6a32e81257532dab2773cfa Mon Sep 17 00:00:00 2001 From: Vittorio Romeo Date: Sun, 5 Dec 2021 17:19:19 +0000 Subject: [PATCH] Delegate 'WglContext(WglContext*)' constructor to more general one --- src/SFML/Window/Win32/WglContext.cpp | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/src/SFML/Window/Win32/WglContext.cpp b/src/SFML/Window/Win32/WglContext.cpp index 2f09320a8..b3b196016 100644 --- a/src/SFML/Window/Win32/WglContext.cpp +++ b/src/SFML/Window/Win32/WglContext.cpp @@ -104,24 +104,8 @@ String getErrorString(DWORD errorCode) //////////////////////////////////////////////////////////// WglContext::WglContext(WglContext* shared) : -m_window (nullptr), -m_pbuffer (nullptr), -m_deviceContext(nullptr), -m_context (nullptr), -m_ownsWindow (false) +WglContext(shared, ContextSettings(), 1u, 1u) { - WglContextImpl::ensureInit(); - - // TODO: Delegate to the other constructor in C++11 - - // Save the creation settings - m_settings = ContextSettings(); - - // Create the rendering surface (window or pbuffer if supported) - createSurface(shared, 1, 1, VideoMode::getDesktopMode().bitsPerPixel); - - // Create the context - createContext(shared); }