MCPcopy Create free account
hub / github.com/SFML/SFML / ensureExtensionsInit

Function ensureExtensionsInit

src/SFML/Window/Win32/WglContext.cpp:86–97  ·  view source on GitHub ↗

///////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

84
85////////////////////////////////////////////////////////////
86void ensureExtensionsInit(HDC deviceContext)
87{
88 static bool initialized = false;
89 if (!initialized)
90 {
91 initialized = true;
92
93 // We don't check the return value since the extension
94 // flags are cleared even if loading fails
95 gladLoadWGL(deviceContext, sf::priv::WglContext::getFunction);
96 }
97}
98} // namespace WglContextImpl
99} // namespace
100

Callers 2

createContextMethod · 0.70

Calls 1

gladLoadWGLFunction · 0.85

Tested by

no test coverage detected