Skip to content

Commit

Permalink
Fixing Mac Canvas
Browse files Browse the repository at this point in the history
  • Loading branch information
arhik committed Nov 13, 2023
1 parent 2686741 commit 61ca99c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion examples/image.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ using WGPUNative
using GLFW
using StaticArrays
using Images
using ImageView

WGPUCore.SetLogLevel(WGPULogLevel_Debug)

Expand Down
4 changes: 2 additions & 2 deletions src/metalglfw.jl
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function setMetalLayer(nswindow, metalLayer)
)
end

mutable struct GLFWMacCanvas <: GLFWCanvas
mutable struct GLFWMacCanvas <: AbstractWGPUCanvas
title::String
size::Tuple
windowRef::Any # This has to be platform specific may be
Expand Down Expand Up @@ -122,7 +122,7 @@ function defaultCanvas(::Type{GLFWMacCanvas}; size = (500, 500))
return canvas
end

mutable struct GPUCanvasContext
mutable struct GPUCanvasContext <: AbstractWGPUCanvasContext
canvasRef::Ref{GLFWMacCanvas}
surfaceSize::Any
surfaceId::Any
Expand Down

0 comments on commit 61ca99c

Please sign in to comment.