Fix to make the OIS interfacing work under Linux.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1435 dfc29bdd-3216-0410-991c-e03cc46cb475master
parent
b083e20be4
commit
9226383d37
|
@ -496,6 +496,7 @@ bool CIrrDeviceLinux::createWindow()
|
||||||
InputOutput, visual->visual,
|
InputOutput, visual->visual,
|
||||||
CWBorderPixel | CWColormap | CWEventMask |
|
CWBorderPixel | CWColormap | CWEventMask |
|
||||||
CWOverrideRedirect, &attributes);
|
CWOverrideRedirect, &attributes);
|
||||||
|
CreationParams.WindowId = (void*)window;
|
||||||
|
|
||||||
XWarpPointer(display, None, window, 0, 0, 0, 0, 0, 0);
|
XWarpPointer(display, None, window, 0, 0, 0, 0, 0, 0);
|
||||||
XMapRaised(display, window);
|
XMapRaised(display, window);
|
||||||
|
@ -517,6 +518,7 @@ bool CIrrDeviceLinux::createWindow()
|
||||||
InputOutput, visual->visual,
|
InputOutput, visual->visual,
|
||||||
CWBorderPixel | CWColormap | CWEventMask,
|
CWBorderPixel | CWColormap | CWEventMask,
|
||||||
&attributes);
|
&attributes);
|
||||||
|
CreationParams.WindowId = (void*)window;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
@ -215,7 +215,7 @@ COpenGLDriver::COpenGLDriver(const SIrrlichtCreationParameters& params,
|
||||||
#endif
|
#endif
|
||||||
ExposedData.OpenGLLinux.X11Context = glXGetCurrentContext();
|
ExposedData.OpenGLLinux.X11Context = glXGetCurrentContext();
|
||||||
ExposedData.OpenGLLinux.X11Display = glXGetCurrentDisplay();
|
ExposedData.OpenGLLinux.X11Display = glXGetCurrentDisplay();
|
||||||
ExposedData.OpenGLLinux.X11Window = glXGetCurrentDrawable();
|
ExposedData.OpenGLLinux.X11Window = (unsigned long)params.WindowId;
|
||||||
|
|
||||||
genericDriverInit(params.WindowSize, params.Stencilbuffer);
|
genericDriverInit(params.WindowSize, params.Stencilbuffer);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue