mirror of
https://github.com/minetest/irrlicht.git
synced 2025-03-06 20:49:24 +01:00
Request OpenGL 3.2
This commit is contained in:
parent
01295c9ce6
commit
cfa8dd7845
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue