Skip to content

bugfix(rendering): Handle null texture surface creation gracefully#432

Open
seer-by-sentry[bot] wants to merge 1 commit intomainfrom
seer/bugfix/handle-null-texture-surface
Open

bugfix(rendering): Handle null texture surface creation gracefully#432
seer-by-sentry[bot] wants to merge 1 commit intomainfrom
seer/bugfix/handle-null-texture-surface

Conversation

@seer-by-sentry
Copy link
Copy Markdown

Fixes CLIENT-1C6. The issue was that: Render2DSentenceClass::Build_Textures dereferences a null SurfaceClass pointer returned by TextureClass::Get_Surface_Level, causing a read access violation.

  • Added a null check for the texture surface after creation.
  • If the texture surface is null, the newly created texture is released, and the process continues.
  • Prevents potential crashes or resource leaks if texture surface creation fails.

This fix was generated by Seer in Sentry, triggered automatically. 👁️ Run ID: 12536059

Not quite right? Click here to continue debugging with Seer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants