Skip to content

fix(wgpu): allow null HINSTANCE for parented Windows editors - #1

Merged
unohee merged 1 commit into
mainfrom
fix/win32-parented-wgpu-hinstance
Sep 1, 2026
Merged

fix(wgpu): allow null HINSTANCE for parented Windows editors#1
unohee merged 1 commit into
mainfrom
fix/win32-parented-wgpu-hinstance

Conversation

@unohee

@unohee unohee commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Why\nbaseview exposes only an HWND for parented Windows plug-in editors. The WGPU raw-handle bridge attempted to unwrap a null HINSTANCE as NonZeroIsize, panicking before surface creation.\n\n## Change\nPreserve a null HINSTANCE in raw-window-handle 0.6 and add a regression test.\n\n## Verification\n-

running 1 test
test renderer::wgpu::renderer::tests::parented_win32_handle_allows_a_null_hinstance ... ok

test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s (1 passed)\n- ENZYME Windows VST3/CLAP release built on qemu Win10 and its Reaper editor rendered successfully after this fix.

@unohee
unohee merged commit af543a3 into main Sep 1, 2026
6 checks passed
@unohee
unohee deleted the fix/win32-parented-wgpu-hinstance branch September 1, 2026 05:24
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.

1 participant