forked from Mirrorlandia_minetest/irrlicht
Request OpenGL 3.2
This commit is contained in:
parent
01295c9ce6
commit
cfa8dd7845
@ -390,6 +390,9 @@ bool CIrrDeviceSDL::createWindow()
|
|||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (CreationParams.DriverType == video::EDT_OPENGL) {
|
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) {
|
if (CreationParams.Bits == 16) {
|
||||||
SDL_GL_SetAttribute(SDL_GL_RED_SIZE, 4);
|
SDL_GL_SetAttribute(SDL_GL_RED_SIZE, 4);
|
||||||
SDL_GL_SetAttribute(SDL_GL_GREEN_SIZE, 4);
|
SDL_GL_SetAttribute(SDL_GL_GREEN_SIZE, 4);
|
||||||
|
Loading…
Reference in New Issue
Block a user