gpu-dawn: correct kernel32.GetModuleHandleW call

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-02-27 06:08:12 -07:00 committed by Stephen Gutekanst
parent daadef1e7d
commit 51f14596db

View file

@ -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;