make sure ktx gets shut down properly.
condition on -nowmfullscreen was inverted. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4902 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
c12cb2f9bb
commit
13a9b36bb3
3 changed files with 5 additions and 8 deletions
|
@ -1433,7 +1433,7 @@ qboolean X_CheckWMFullscreenAvailable(void)
|
|||
unsigned char *wmname;
|
||||
int i;
|
||||
|
||||
if (!COM_CheckParm("-nowmfullscreen"))
|
||||
if (COM_CheckParm("-nowmfullscreen"))
|
||||
{
|
||||
Con_Printf("Window manager fullscreen support disabled. Will attempt to hide from it instead.\n");
|
||||
return success;
|
||||
|
|
|
@ -620,6 +620,9 @@ void PR_Deinit(void)
|
|||
int i;
|
||||
|
||||
PRSV_ClearThreads();
|
||||
#ifdef VM_Q1
|
||||
Q1QVM_Shutdown();
|
||||
#endif
|
||||
if (svprogfuncs)
|
||||
{
|
||||
PR_Common_Shutdown(svprogfuncs, false);
|
||||
|
|
|
@ -1373,13 +1373,7 @@ qboolean PR_LoadQ1QVM(void)
|
|||
qintptr_t limit;
|
||||
extern cvar_t pr_maxedicts;
|
||||
|
||||
if (q1qvm)
|
||||
VM_Destroy(q1qvm);
|
||||
if (q1qvmedicttable)
|
||||
{
|
||||
Z_Free(q1qvmedicttable);
|
||||
q1qvmedicttable = NULL;
|
||||
}
|
||||
Q1QVM_Shutdown();
|
||||
|
||||
q1qvm = VM_Create("qwprogs", com_nogamedirnativecode.ival?NULL:syscallnative, syscallqvm);
|
||||
if (!q1qvm)
|
||||
|
|
Loading…
Reference in a new issue