mirror of
https://github.com/SFML/SFML.git
synced 2024-11-24 20:31:05 +08:00
Use delegating constructor
This commit is contained in:
parent
123270f7ad
commit
4fbd1d34b1
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user