mirror of
https://github.com/ZDoom/Raze.git
synced 2025-05-30 08:51:08 +00:00
- added a few more texture formats to FHardwareTexture.
For brightmaps we do not need full RGBA8 data with mipmaps - RGBA2 without mipmaps is fully sufficient here and will save a lot of video memory.
This commit is contained in:
parent
7d2f61db2e
commit
bb4a19cf3a
9 changed files with 34 additions and 64 deletions
|
@ -69,7 +69,7 @@ FHardwareTexture *gloadtex(const int32_t *picbuf, int32_t xsiz, int32_t ysiz, in
|
|||
}
|
||||
|
||||
auto tex = GLInterface.NewTexture();
|
||||
tex->CreateTexture(xsiz, ysiz, false, false);
|
||||
tex->CreateTexture(xsiz, ysiz, FHardwareTexture::TrueColor, false);
|
||||
tex->LoadTexture((uint8_t*)pic2);
|
||||
tex->SetSampler(SamplerNoFilterClampXY);
|
||||
Xfree(pic2);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue