Skip to content

Commit

Permalink
Delegate 'WglContext(WglContext*)' constructor to more general one
Browse files Browse the repository at this point in the history
  • Loading branch information
vittorioromeo authored and eXpl0it3r committed Dec 6, 2021
1 parent 475d5b9 commit 0f38509
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions src/SFML/Window/Win32/WglContext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}


Expand Down

0 comments on commit 0f38509

Please sign in to comment.