Merge pull request #681 from cxd4/SDL-TexCache

Remove SDL dependency from TexCache unit (Win32 libs fix).
This commit is contained in:
zilmar 2015-10-23 09:13:59 +11:00
commit 647ce6ae78
1 changed files with 8 additions and 2 deletions

View File

@ -37,8 +37,11 @@
//
//****************************************************************
#ifndef _WIN32
#include <SDL.h>
#endif
#include "Gfx_1.3.h"
#include "TexCache.h"
#include "Combine.h"
#include "Util.h"
@ -539,11 +542,14 @@ void TexCache ()
if (ghq_dmptex_toggle_key) {
DisplayLoadProgress(L"Texture dump - ON\n");
ClearCache();
SDL_Delay(1000);
} else {
DisplayLoadProgress(L"Texture dump - OFF\n");
SDL_Delay(1000);
}
#if defined(_WIN32)
Sleep(1000);
#else
SDL_Delay(1000);
#endif
}
}
#endif