We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 65c4ee6 commit 29ea3e9Copy full SHA for 29ea3e9
src/glfwWindows.jl
@@ -206,7 +206,7 @@ end
206
207
function WGPUCore.present(cntxt::GPUCanvasContext)
208
canvas = cntxt.canvasRef[]
209
- if cntxt.internal[] != C_NULL && cntxt.currentTexture.internal[] != C_NULL
+ if cntxt.currentTexture.internal[] != C_NULL
210
wgpuSurfacePresent(canvas.surfaceRef[])
211
end
212
WGPUCore.destroy(cntxt.currentTexture)
@@ -232,7 +232,7 @@ function configureSurface(canvasCntxt::GPUCanvasContext)
232
233
surfaceConfiguration =
234
cStruct(
235
- WGPUSwapChainDescriptor;
+ WGPUSurfaceConfiguration;
236
device = canvasCntxt.device.internal[],
237
usage = canvasCntxt.usage,
238
format = canvasCntxt.format,
0 commit comments