///////////////////////////////////////////////////////
| 59 | |
| 60 | //////////////////////////////////////////////////////////// |
| 61 | void 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 | |
| 77 | int handleXError(::Display*, XErrorEvent*) |
no test coverage detected