From 35efaec51974fccf9f478ebbe6c2595c24e273b6 Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Sun, 27 Feb 2022 06:08:12 -0700 Subject: [PATCH] gpu-dawn: correct kernel32.GetModuleHandleW call Signed-off-by: Stephen Gutekanst --- src/dawn/sample_utils.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dawn/sample_utils.zig b/src/dawn/sample_utils.zig index bcd98ae9d..f084c7672 100644 --- a/src/dawn/sample_utils.zig +++ b/src/dawn/sample_utils.zig @@ -167,7 +167,7 @@ pub fn createSurfaceForWindow( desc.chain.next = null; desc.chain.sType = c.WGPUSType_SurfaceDescriptorFromWindowsHWND; - desc.hinstance = c.GetModuleHandle(null); + desc.hinstance = std.os.windows.kernel32.GetModuleHandleW(null); desc.hwnd = glfw_native.getWin32Window(window); var descriptor: c.WGPUSurfaceDescriptor = undefined;