smol cleanup W_CachePatchNumPwad
This commit is contained in:
1 parent
a0062060eb
commit
88dc5f25ad
1 file changed
+2
-6
+2
-6
@@ -1738,7 +1738,6 @@ void *W_CacheLumpName(const char *name, INT32 tag)
|
||||
// Cache a patch into heap memory, convert the patch format as necessary
|
||||
//
|
||||
|
||||
// Software-only compile cache the data without conversion
|
||||
void *W_CacheSoftwarePatchNumPwad(UINT16 wad, UINT16 lump, INT32 tag)
|
||||
{
|
||||
lumpcache_t *lumpcache = NULL;
|
||||
@@ -1784,14 +1783,11 @@ void *W_CachePatchNumPwad(UINT16 wad, UINT16 lump, INT32 tag)
|
||||
|
||||
#ifdef HWRENDER
|
||||
// Software-only compile cache the data without conversion
|
||||
if (rendermode == render_soft || rendermode == render_none)
|
||||
if (rendermode == render_opengl)
|
||||
Patch_CreateGL(patch);
|
||||
#endif
|
||||
return (void *)patch;
|
||||
|
||||
#ifdef HWRENDER
|
||||
Patch_CreateGL(patch);
|
||||
return (void *)patch;
|
||||
#endif
|
||||
}
|
||||
|
||||
void *W_CachePatchNum(lumpnum_t lumpnum, INT32 tag)
|
||||
|
||||
Reference in new issue
Block a user