mirror of
https://github.com/minetest/irrlicht.git
synced 2024-12-25 07:32:25 +01:00
Request OpenGL 3.2
This commit is contained in:
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);
|
||||
|
Loading…
Reference in New Issue
Block a user