Skip to content

Commit

Permalink
fix syntax error
Browse files Browse the repository at this point in the history
  • Loading branch information
ColleagueRiley committed Oct 20, 2024
1 parent 7a7795b commit 4c1378d
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions examples/webgpu/webgpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -111,13 +111,12 @@ int main(int argc, const char* argv[]) {
// init
//-----------------
if (state.wgpu.swapchain) {
wgpuSwapChainRelease(state.wgpu.swapchain);
state.wgpu.swapchain = NULL;
}

state.wgpu.swapchain = create_swapchain();
wgpuSwapChainRelease(state.wgpu.swapchain);
state.wgpu.swapchain = NULL;
}

state.wgpu.swapchain = create_swapchain();

//-----------------
// setup pipeline
//-----------------
Expand Down

0 comments on commit 4c1378d

Please sign in to comment.