mirror of
https://github.com/ZDoom/Raze.git
synced 2025-05-31 01:11:15 +00:00
- texture code restructuring.
This commit is contained in:
parent
cdcb25bc1f
commit
423f758314
14 changed files with 80 additions and 45 deletions
|
@ -104,7 +104,7 @@ void PaletteManager::BindPalette(int index)
|
|||
p->CreateTexture((uint8_t*)palettedata->Palette, 256, 1, 15, false, "Palette");
|
||||
palettetextures[index] = p;
|
||||
}
|
||||
inst->BindTexture(2, palettetextures[index], SamplerNoFilterClampXY);
|
||||
inst->SetPaletteTexture(palettetextures[index]);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -140,7 +140,7 @@ void PaletteManager::BindPalswap(int index)
|
|||
p->CreateTexture(lookup.Data(), 256, numshades, 15, false, "Palette");
|
||||
palswaptextures[index] = p;
|
||||
}
|
||||
inst->BindTexture(1, palswaptextures[index], SamplerNoFilterClampXY);
|
||||
inst->SetLookupTexture(palswaptextures[index]);
|
||||
inst->SetFadeColor(lookups.getFade(index));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue