We use a different loader for wgl functions since we load them directly from OpenGL32.dll
| 59 | |
| 60 | // We use a different loader for wgl functions since we load them directly from OpenGL32.dll |
| 61 | sf::GlFunctionPointer getOpenGl32Function(const char* name) |
| 62 | { |
| 63 | static const HMODULE module = GetModuleHandleA("OpenGL32.dll"); |
| 64 | |
| 65 | if (module) |
| 66 | return reinterpret_cast<sf::GlFunctionPointer>(GetProcAddress(module, reinterpret_cast<LPCSTR>(name))); |
| 67 | |
| 68 | return nullptr; |
| 69 | } |
| 70 | |
| 71 | |
| 72 | //////////////////////////////////////////////////////////// |