J :
* A few bugfixes, a few pixel-precise adjustments.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user