This commit is contained in:
Sachith Hasaranga Seneviratne 2014-08-15 21:47:09 +05:30
commit 84d3802f08
2 changed files with 9 additions and 3 deletions

View File

@ -14,6 +14,8 @@ in vec3 Position;
in vec3 Normal;
in vec4 Color;
in vec2 Texcoord;
in vec3 Tangent;
in vec3 Bitangent;
in vec3 Origin;
in vec3 Orientation;

View File

@ -185,15 +185,19 @@ CIrrDeviceLinux::~CIrrDeviceLinux()
}
#endif // #ifdef _IRR_COMPILE_WITH_OPENGL_
// Reset fullscreen resolution change
switchToFullscreen(true);
if (SoftwareImage)
XDestroyImage(SoftwareImage);
if (!ExternalWindow)
{
XDestroyWindow(display,window);
}
// Reset fullscreen resolution change
switchToFullscreen(true);
if (!ExternalWindow)
{
XCloseDisplay(display);
}
}