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

Function ensureExtensionsInit

src/SFML/Window/Unix/GlxContext.cpp:61–74  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

59
60////////////////////////////////////////////////////////////
61void ensureExtensionsInit(::Display* display, int screen)
62{
63 static bool initialized = false;
64 if (!initialized)
65 {
66 initialized = true;
67
68 // We don't check the return value since the extension
69 // flags are cleared even if loading fails
70 gladLoaderLoadGLX(display, screen);
71
72 gladLoadGLX(display, screen, sf::priv::GlxContext::getFunction);
73 }
74}
75
76
77int handleXError(::Display*, XErrorEvent*)

Callers 2

GlxContextMethod · 0.70
selectBestVisualMethod · 0.70

Calls 2

gladLoaderLoadGLXFunction · 0.85
gladLoadGLXFunction · 0.85

Tested by

no test coverage detected