mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2025-01-31 12:30:32 +00:00
- Fixed crash with dummy texture inside FTexture::FillBuffer in software mode.
Caused by The following GameInfo line in Doom Tournament: Border = 0,0,"","","","","","","",""
This commit is contained in:
parent
5fb354e7f4
commit
1186bccca0
1 changed files with 2 additions and 0 deletions
|
@ -759,6 +759,8 @@ void FTexture::FillBuffer(uint8_t *buff, int pitch, int height, FTextureFormat f
|
|||
case TEX_Pal:
|
||||
case TEX_Gray:
|
||||
pix = GetPixels(fmt == TEX_Pal? DefaultRenderStyle() : LegacyRenderStyles[STYLE_Shaded]);
|
||||
if (pix == nullptr) // Dummy texture?
|
||||
return;
|
||||
stride = pitch - w;
|
||||
for (y = 0; y < h; ++y)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue