[nostalgia/core/sdl] Reduce required GL version to 3.0

This commit is contained in:
Gary Talent 2021-03-28 03:47:38 -05:00
parent 1750fa688a
commit 4cace9d8e0

View File

@ -33,7 +33,7 @@ ox::Error initGfx(Context *ctx) {
}
SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, SDL_GL_CONTEXT_PROFILE_CORE);
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 3);
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 2);
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 0);
id->renderer = SDL_GL_CreateContext(id->window);
if (id->renderer == nullptr) {
return OxError(1, SDL_GetError());