gpu: update GetModuleHandleW usage in examples
This commit is contained in:
parent
fc2c0c0ff8
commit
8072839973
1 changed files with 1 additions and 1 deletions
|
|
@ -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{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue