Skip to content

TextureLoader: Add validity checks for D3DTexture before operations - #80

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

TextureLoader: Add validity checks for D3DTexture before operations#80
seer-by-sentry[bot] wants to merge 1 commit into
mainfrom
seer/textureloader-validitychecks

Conversation

@seer-by-sentry

Copy link
Copy Markdown

Fixes CLIENT-H2. The issue was that: Texture load functions return success despite Direct3D texture creation failing, leading to null pointer dereference in Lock_Surfaces.

  • Added checks after texture creation to verify success and return false if creation failed.
  • Added a defensive check in Lock_Surfaces to verify D3DTexture is valid before dereferencing it.

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

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