Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions getting-started/first-color.md
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ Of course we must release this view once we no longer need it, just before prese
```{lit} C++, Present the surface onto the window
// At the end of the frame
wgpuTextureViewRelease(targetView);
wgpuTextureRelease(surfaceTexture.texture);
```

### Presenting
Expand All @@ -259,6 +260,7 @@ As a consequence, we **must not** call `wgpuSurfacePresent()` when building with
```{lit} C++, Present the surface onto the window (replace)
// At the end of the frame
wgpuTextureViewRelease(targetView);
wgpuTextureRelease(surfaceTexture.texture);
#ifndef __EMSCRIPTEN__
wgpuSurfacePresent(surface);
#endif
Expand Down