Revert "NULL to nullptr"

This reverts commit 4b4b20a84b.
This commit is contained in:
GabsPuNs
2026-03-21 00:04:26 -04:00
parent 0d0ca31dfc
commit 180b4a117b
69 changed files with 4178 additions and 4176 deletions

View File

@@ -1001,8 +1001,8 @@ void Textures::releaseTexture(int id)
loadedImages.erase(id);
// TextureFree() has no bounds check and crashes on stale IDs (e.g. after
// RenderManager.Initialise() which memsets the texture table to zero).
// TextureGetTexture() IS safe — returns nullptr for invalid/unallocated IDs.
if (RenderManager.TextureGetTexture(id) != nullptr)
// TextureGetTexture() IS safe — returns NULL for invalid/unallocated IDs.
if (RenderManager.TextureGetTexture(id) != NULL)
{
glDeleteTextures(id);
}