gpu-dawn: correct kernel32.GetModuleHandleW call
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
daadef1e7d
commit
51f14596db
1 changed files with 1 additions and 1 deletions
|
|
@ -167,7 +167,7 @@ pub fn createSurfaceForWindow(
|
||||||
desc.chain.next = null;
|
desc.chain.next = null;
|
||||||
desc.chain.sType = c.WGPUSType_SurfaceDescriptorFromWindowsHWND;
|
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);
|
desc.hwnd = glfw_native.getWin32Window(window);
|
||||||
|
|
||||||
var descriptor: c.WGPUSurfaceDescriptor = undefined;
|
var descriptor: c.WGPUSurfaceDescriptor = undefined;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue