Skip to content

Commit 838069d

Browse files
committed
Update metalglfw.jl
1 parent 0f98086 commit 838069d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/metalglfw.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,17 +68,17 @@ function defaultCanvas(::Type{GLFWMacCanvas}, size::Tuple{Int, Int})
6868
setMetalLayer(nswindow[], metalLayer[])
6969
metalSurfaceRef =
7070
cStruct(
71-
WGPUSurfaceDescriptorFromMetalLayer;
71+
WGPUSurfaceSourceMetalLayer;
7272
chain = cStruct(
7373
WGPUChainedStruct;
7474
next = C_NULL,
75-
sType = WGPUSType_SurfaceDescriptorFromMetalLayer,
75+
sType = WGPUSType_SurfaceSourceMetalLayer,
7676
) |> concrete,
7777
layer = metalLayer[],
7878
)
7979
surfaceDescriptorRef = cStruct(
8080
WGPUSurfaceDescriptor;
81-
label = C_NULL,
81+
label = WGPUStringView(C_NULL, 0),
8282
nextInChain = metalSurfaceRef |> ptr,
8383
)
8484
instance = WGPUCore.getWGPUInstance()

0 commit comments

Comments
 (0)