mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 23:02:03 +00:00
- fixed creation of true color textures.
The palette check was not correct so they ended up empty and caused other problems down the line.
This commit is contained in:
parent
e8c5939695
commit
1cfe5be130
3 changed files with 2 additions and 2 deletions
|
@ -697,7 +697,7 @@ static void polymost_drawpoly(vec2f_t const * const dpxy, int32_t const n, int32
|
|||
skyzbufferhack_pass--;
|
||||
}
|
||||
|
||||
if (!tilePtr(globalpicnum))
|
||||
if (!success)
|
||||
GLInterface.SetColorMask(true);
|
||||
}
|
||||
|
||||
|
|
|
@ -96,7 +96,7 @@ FHardwareTexture* GLInstance::CreateIndexedTexture(FTexture* tex)
|
|||
FHardwareTexture* GLInstance::CreateTrueColorTexture(FTexture* tex, int palid, bool checkfulltransparency, bool rgb8bit)
|
||||
{
|
||||
auto palette = palid < 0? nullptr : palmanager.GetPaletteData(palid);
|
||||
if (palette == nullptr) return nullptr;
|
||||
if (palid >= 0 && palette == nullptr) return nullptr;
|
||||
auto texbuffer = tex->CreateTexBuffer(palette, CTF_ProcessData);
|
||||
// Check if the texture is fully transparent. When creating a brightmap such textures can be discarded.
|
||||
if (checkfulltransparency)
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 42 KiB After Width: | Height: | Size: 26 KiB |
Loading…
Reference in a new issue