Skip to content

Commit 29ea3e9

Browse files
committed
Update glfwWindows.jl
1 parent 65c4ee6 commit 29ea3e9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/glfwWindows.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ end
206206

207207
function WGPUCore.present(cntxt::GPUCanvasContext)
208208
canvas = cntxt.canvasRef[]
209-
if cntxt.internal[] != C_NULL && cntxt.currentTexture.internal[] != C_NULL
209+
if cntxt.currentTexture.internal[] != C_NULL
210210
wgpuSurfacePresent(canvas.surfaceRef[])
211211
end
212212
WGPUCore.destroy(cntxt.currentTexture)
@@ -232,7 +232,7 @@ function configureSurface(canvasCntxt::GPUCanvasContext)
232232

233233
surfaceConfiguration =
234234
cStruct(
235-
WGPUSwapChainDescriptor;
235+
WGPUSurfaceConfiguration;
236236
device = canvasCntxt.device.internal[],
237237
usage = canvasCntxt.usage,
238238
format = canvasCntxt.format,

0 commit comments

Comments
 (0)