In release mode i get
Code: Select all
Major opcode of failed request: 154 (GLX)
Minor opcode of failed request: 31 (X_GLXCreateWindow)
Serial number of failed request: 26
Current serial number in output stream: 30
And in debug mode, i get an error, but all works:
Code: Select all
X Error: GLXBadWindow
From call : unknown
Code: Select all
int flags = SDL_WINDOW_OPENGL | SDL_WINDOW_ALLOW_HIGHDPI | SDL_WINDOW_BORDERLESS;
if(mUserConfig && mUserConfig->video.fullScreen)
flags = SDL_WINDOW_FULLSCREEN;
mSDLWindow = SDL_CreateWindow("SE",
SDL_WINDOWPOS_CENTERED,
SDL_WINDOWPOS_CENTERED,
(mUserConfig != nullptr) ? mUserConfig->video.size.Width : 500,
(mUserConfig != nullptr) ? mUserConfig->video.size.Height : 500,
flags);
if(mSDLWindow) {
//SDL_GLContext context = SDL_GL_CreateContext(mSDLWindow);
irr::SIrrlichtCreationParameters creationParams;
creationParams.DriverType = irr::video::EDT_OPENGL;
creationParams.Fullscreen = false;
creationParams.AntiAlias = true;
creationParams.Bits = 32;
creationParams.Vsync = (mUserConfig) ? mUserConfig->video.vsync : true;
SDL_SysWMinfo info;
SDL_VERSION(&info.version);
if(SDL_GetWindowWMInfo(mSDLWindow, &info))
{
#ifdef _IRR_WINDOWS_
creationParams.WindowId = reinterpret_cast<void *>(info.info.win.window);
#else
creationParams.IgnoreInput=true;
creationParams.WindowId = reinterpret_cast<void *>(info.info.x11.window);
#endif
mIrrDevice = irr::createDeviceEx(creationParams);
}
else
SE_END_PROGRAM("SDL failed to get the driver dependient windows information")
}