mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-28 12:30:46 +00:00
- fixed Blood startup.
This commit is contained in:
parent
f64bdccaca
commit
2d29d130c0
4 changed files with 3 additions and 11 deletions
|
@ -71,10 +71,10 @@ void scrLoadPLUs(void)
|
|||
// load lookup tables
|
||||
for (int i = 0; i < MAXPALOOKUPS; i++)
|
||||
{
|
||||
int lump = i <= 15 ? fileSystem.FindFile(PLU[i]) : fileSystem.FindResource(i, "PLU");
|
||||
int lump = i < 15 ? fileSystem.FindFile(PLU[i]) : fileSystem.FindResource(i, "PLU");
|
||||
if (lump < 0)
|
||||
{
|
||||
if (i <= 15) I_FatalError("%s.PLU not found", PLU[i]);
|
||||
if (i < 15) I_FatalError("%s.PLU not found", PLU[i]);
|
||||
else continue;
|
||||
}
|
||||
auto data = fileSystem.GetFileData(lump);
|
||||
|
|
|
@ -2095,6 +2095,7 @@ int32_t engineInit(void)
|
|||
|
||||
maxspritesonscreen = MAXSPRITESONSCREEN;
|
||||
|
||||
GPalette.Init(MAXPALOOKUPS + 1); // one slot for each translation, plus a separate one for the base palettes.
|
||||
if (paletteLoadFromDisk_replace)
|
||||
{
|
||||
paletteLoadFromDisk_replace();
|
||||
|
|
|
@ -75,8 +75,6 @@ void paletteSetColorTable(int32_t id, uint8_t const* table, bool notransparency,
|
|||
|
||||
void paletteLoadFromDisk(void)
|
||||
{
|
||||
GPalette.Init(MAXPALOOKUPS + 1); // one slot for each translation, plus a separate one for the base palettes.
|
||||
|
||||
for (auto & x : glblend)
|
||||
x = defaultglblend;
|
||||
|
||||
|
|
|
@ -57,13 +57,6 @@ using INTBOOL = int;
|
|||
using BITFIELD = uint32_t;
|
||||
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
#define NOVTABLE __declspec(novtable)
|
||||
#else
|
||||
#define NOVTABLE
|
||||
#endif
|
||||
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
#define NOVTABLE __declspec(novtable)
|
||||
#else
|
||||
|
|
Loading…
Reference in a new issue