* A few bugfixes, a few pixel-precise adjustments.
This commit is contained in:
jean.chalard
2009-01-04 06:34:29 +00:00
parent 0d14207247
commit a85da61604
4 changed files with 9 additions and 8 deletions

View File

@@ -172,7 +172,6 @@ void DestroyGame(void)
void KillGLWindow(void) // Properly Kill The Window
{
DestroyGame();
if (gXWindow && gXDisplay)
XDestroyWindow(gXDisplay, gXWindow);
gXWindow = NULL;
@@ -252,6 +251,9 @@ BOOL CreateGLWindow(char* title, int width, int height, int bits __attribute__((
// Bind the GLX context to the Window
glXMakeContextCurrent(gXDisplay, glxWin, glxWin, context);
free(vInfo);
free(fbConfigs);
SizeGLScene(width, height);
if (!InitGL())
{
@@ -259,12 +261,6 @@ BOOL CreateGLWindow(char* title, int width, int height, int bits __attribute__((
printf("Initializing GL failed.");
return false;
}
if (!InitGame())
{
KillGLWindow();
printf("Initializing game failed.");
return false;
}
return true;
}
@@ -474,6 +470,7 @@ int main(int argc, char* argv[])
delete g_launcher;
// Shutdown
DestroyGame();
KillGLWindow(); // Kill The Window
return 0;
}