Skip to content

Conversation

@spencerbug
Copy link

Added null free checking guards in UnloadTexture/FreeTexture


name: Pull Request
about: Create a pull request to help us improve
title: ''
assignees: ''


Description:
Added null free checking to FreeTexture/UnloadTexture. There's a race condition where the renderer isn't up when the textures start getting added.

Before fix:

image

After fix:

image
Added null free checking guards in UnloadTexture/FreeTexture
@v-ein
Copy link
Collaborator

v-ein commented Jan 22, 2026

My 2 cents:

  • I don't think this should be fixed at the FreeTexture level.
  • I have a pending PR that updates Dear ImGui to 1.92.5, and among other things will fix this issue in the texture destructor instead of FreeTexture.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants