Код: Выделить всё
glfwInit();
glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 4);
glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 6);
window = glfwCreateWindow(xRes, yRes, wndTitle.c_str(), NULL, NULL);
if (!window)
{
std::cout
Подробнее здесь: [url]https://stackoverflow.com/questions/78649578/access-violation-when-loading-opengl-functions[/url]
Мобильная версия