Skip to content

Fix mouse drawing before initialization - #223

Open
seer-by-sentry[bot] wants to merge 1 commit into
mainfrom
seer/fix/mouse-init-draw-race
Open

seer-by-sentry[bot] wants to merge 1 commit into
mainfrom
seer/fix/mouse-init-draw-race

Conversation

@seer-by-sentry

@seer-by-sentry seer-by-sentry Bot commented Jan 5, 2026

Copy link
Copy Markdown

Fixes CLIENT-1PH. The issue was that: W3DMouse thread started prematurely during CRT initialization, causing concurrent access to COM/DirectX resources and resulting in an access violation in WRL::AsIID.

  • Added an 'm_initialized' flag to W3DMouse to prevent drawing before setup is complete.
  • Modified the mouse drawing thread to only execute draw() if the W3DMouse object is initialized.
  • Set the 'm_initialized' flag to true in GameClient::init() after the mouse object is fully configured.

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

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