dont try to make glpatch from nothing

This commit is contained in:
Alug committed 2025-08-22 17:41:30 +02:00
1 parent 3a01076b5b
commit 573af709df
1 file changed
+1 -1
+1 -1
View File
@@ -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