From cfa8dd78450f4a7f375fa6a12319ae7d067e9891 Mon Sep 17 00:00:00 2001 From: numzero Date: Mon, 27 Feb 2023 17:39:28 +0300 Subject: [PATCH] Request OpenGL 3.2 --- source/Irrlicht/CIrrDeviceSDL.cpp | 3 +++ 1 file changed, 3 insertions(+) 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);