Вот пример того, как я загружаю свои функции OpenGL 1.1+:
Код: Выделить всё
// header file
inline PFNGLACTIVETEXTUREPROC glActiveTexture = nullptr;
...
// source file
glActiveTexture = reinterpret_cast
(wglGetProcAddress("glActiveTexture"));
if (glActiveTexture == nullptr)
std::cerr
Подробнее здесь: [url]https://stackoverflow.com/questions/78744788/gldrawelements-causes-access-violation-reading-location-0x0000000000000000[/url]
Мобильная версия