Код: Выделить всё
SDL_GL_CreateContext failed: Could not create GL context:< /code>
Как вы можете видеть, сообщение после пустого толстой кишки, что затрудняет отладь.g++ -Wall -Ofast main.cpp include/glad/glad.c -Iinclude/SDL3 -Linclude/SDL3 -lSDL3 -lopengl32 -o build/programcode:
Код: Выделить всё
#define SDL_MAIN_HANDLED
#include
#include
#include
#include
int main(int argc, char* argv[]) {
if (!SDL_Init(SDL_INIT_VIDEO | SDL_INIT_EVENTS)) {
std::cerr
Подробнее здесь: [url]https://stackoverflow.com/questions/79637402/sdl-gl-createcontext-fails-with-sdl3-and-opengl-4-6-on-windows-no-error-message[/url]
Мобильная версия