Request OpenGL 3.2

This commit is contained in:
numzero 2023-02-27 17:39:28 +03:00
parent 01295c9ce6
commit cfa8dd7845

@ -390,6 +390,9 @@ bool CIrrDeviceSDL::createWindow()
return false;
if (CreationParams.DriverType == video::EDT_OPENGL) {
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 3);
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 2);
SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, SDL_GL_CONTEXT_PROFILE_COMPATIBILITY);
if (CreationParams.Bits == 16) {
SDL_GL_SetAttribute(SDL_GL_RED_SIZE, 4);
SDL_GL_SetAttribute(SDL_GL_GREEN_SIZE, 4);