Skip to content

TextureLoader: Add null checks for D3DTexture after creation - #77

Open
seer-by-sentry[bot] wants to merge 1 commit into
mainfrom
seer/textureloadernullchecks
Open

TextureLoader: Add null checks for D3DTexture after creation#77
seer-by-sentry[bot] wants to merge 1 commit into
mainfrom
seer/textureloadernullchecks

Conversation

@seer-by-sentry

Copy link
Copy Markdown

Fixes CLIENT-GQ. The issue was that: Texture creation functions unconditionally return success, allowing null DirectX texture pointer to be dereferenced in Lock_Surfaces.

  • Added null checks for D3DTexture after creation in CreateTexture and CreateTextureFromSurface functions.
  • Return false if D3DTexture is null, preventing potential crashes.

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

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