gpu: update GetModuleHandleW usage in examples

This commit is contained in:
Andrew Gutekanst 2022-03-19 18:06:34 -04:00 committed by Stephen Gutekanst
parent fc2c0c0ff8
commit 8072839973

View file

@ -174,7 +174,7 @@ pub fn createSurfaceForWindow(
const descriptor = if (glfw_options.win32) gpu.Surface.Descriptor{
.windows_hwnd = .{
.label = "basic surface",
.hinstance = std.os.windows.kernel32.GetModuleHandleW(null),
.hinstance = std.os.windows.kernel32.GetModuleHandleW(null).?,
.hwnd = glfw_native.getWin32Window(window),
},
} else if (glfw_options.x11) gpu.Surface.Descriptor{