From 601754366685f8d02f00143fa76ad9379b0f5f7d Mon Sep 17 00:00:00 2001 From: Alug Date: Fri, 22 Aug 2025 17:41:30 +0200 Subject: [PATCH] dont try to make glpatch from nothing --- src/w_wad.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/w_wad.c b/src/w_wad.c index 5c774aa60..ec3b1f3aa 100644 --- a/src/w_wad.c +++ b/src/w_wad.c @@ -1819,7 +1819,7 @@ void *W_CachePatchNumPwad(UINT16 wad, UINT16 lump, INT32 tag) #ifdef HWRENDER // Software-only compile cache the data without conversion - if (rendermode == render_opengl) + if (patch != NULL && rendermode == render_opengl) Patch_CreateGL(patch); #endif