mirror of
https://github.com/SFML/SFML.git
synced 2024-11-28 22:31:09 +08:00
Delegate 'WglContext(WglContext*)' constructor to more general one
This commit is contained in:
parent
eef309e870
commit
93410afdc7
@ -104,24 +104,8 @@ String getErrorString(DWORD errorCode)
|
|||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
WglContext::WglContext(WglContext* shared) :
|
WglContext::WglContext(WglContext* shared) :
|
||||||
m_window (nullptr),
|
WglContext(shared, ContextSettings(), 1u, 1u)
|
||||||
m_pbuffer (nullptr),
|
|
||||||
m_deviceContext(nullptr),
|
|
||||||
m_context (nullptr),
|
|
||||||
m_ownsWindow (false)
|
|
||||||
{
|
{
|
||||||
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);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user