Skip to content

Commit

Permalink
gpu-dawn: correct kernel32.GetModuleHandleW call
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Gutekanst <[email protected]>
  • Loading branch information
slimsag committed Feb 27, 2022
1 parent 1f0202d commit 35efaec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dawn/sample_utils.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 35efaec

Please sign in to comment.