mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-26 22:11:43 +00:00
- fixed crash in the precaching code.
This didn't detect software canvas textures and crashed on the missing image.
This commit is contained in:
parent
141d5bdf3e
commit
9b2c11a612
1 changed files with 2 additions and 2 deletions
|
@ -86,7 +86,7 @@ void FSoftwareRenderer::PreparePrecache(FTexture *ttex, int cache)
|
|||
{
|
||||
bool isbgra = V_IsTrueColor();
|
||||
|
||||
if (ttex != NULL && ttex->isValid())
|
||||
if (ttex != nullptr && ttex->isValid() && !ttex->isCanvas())
|
||||
{
|
||||
FSoftwareTexture *tex = ttex->GetSoftwareTexture();
|
||||
|
||||
|
@ -105,7 +105,7 @@ void FSoftwareRenderer::PrecacheTexture(FTexture *ttex, int cache)
|
|||
{
|
||||
bool isbgra = V_IsTrueColor();
|
||||
|
||||
if (ttex != NULL && ttex->isValid())
|
||||
if (ttex != nullptr && ttex->isValid() && !ttex->isCanvas())
|
||||
{
|
||||
FSoftwareTexture *tex = ttex->GetSoftwareTexture();
|
||||
if (cache & FTextureManager::HIT_Columnmode)
|
||||
|
|
Loading…
Reference in a new issue