Skip to content

Commit

Permalink
Release surface texture in main loop
Browse files Browse the repository at this point in the history
  • Loading branch information
eliemichel committed Oct 25, 2024
1 parent 9d4c51f commit cc7c81f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Application.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ void Application::onFrame() {
renderPass.release();

nextTexture.release();
Texture(surfaceTexture.texture).release();

CommandBufferDescriptor cmdBufferDescriptor{};
cmdBufferDescriptor.label = WGPU_STR("Command buffer");
Expand Down

0 comments on commit cc7c81f

Please sign in to comment.