///////////////////////////////////////////////////////
| 84 | |
| 85 | //////////////////////////////////////////////////////////// |
| 86 | void 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 |
no test coverage detected