Я получаю следующую ошибку:
Код: Выделить всё
Thread 1 "main" received signal SIGSEGV, Segmentation fault.
0x00007fffeca7fe01 in ?? () from /lib/x86_64-linux-gnu/libgallium-25.0.7-0ubuntu0.24.04.2.so
Код: Выделить всё
gladLoadGLLoader((GLADloadproc)glfwGetProcAddress);
в моем файле шейдера я еще раз проверяю, чтобы убедиться, что контекст установлен с помощью функции, которую я нашел где-то в Интернете:
Код: Выделить всё
// Check if a context is current before calling any OpenGL function
if (glfwGetCurrentContext() == NULL) {
// This is the error!
std::cerr
Подробнее здесь: [url]https://stackoverflow.com/questions/79797195/segmentation-fault-error-once-running-gllinkprogramshaderprogramid[/url]
Мобильная версия