From: numzero Date: Mon, 27 Feb 2023 14:39:28 +0000 (+0300) Subject: Request OpenGL 3.2 X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=cfa8dd78450f4a7f375fa6a12319ae7d067e9891;p=irrlicht.git Request OpenGL 3.2 --- diff --git a/source/Irrlicht/CIrrDeviceSDL.cpp b/source/Irrlicht/CIrrDeviceSDL.cpp index 3b5a736..8a74719 100644 --- a/source/Irrlicht/CIrrDeviceSDL.cpp +++ b/source/Irrlicht/CIrrDeviceSDL.cpp @@ -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);