Skip to content

Commit

Permalink
Client: Fix the failure reason given for outdated surfaces
Browse files Browse the repository at this point in the history
I didn't even notice this until implementing the ESC binding. With that, it's easy to test - press ESC immediately and the surface will become invalid while shutting down. However, the failure reason given will be "nil" instead of the intended message.
  • Loading branch information
rdw-software committed Feb 6, 2024
1 parent eb0d4da commit 5b10b79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Core/NativeClient/WebGPU/Surface.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ local Surface = {
UNKNOWN_TEXTURE_STATUS = "Received an unknown texture status from the WebGPU API (outdated FFI bindings?)",
GPU_MEMORY_EXHAUSTED = "The available GPU memory is exhausted (VRAM usage too high or leaking resources?)",
BACKING_SURFACE_LOST = "The backing surface has been lost and can't be used (texture format changed?)",
BACKING_SURFACE_OUDATED = "The backing surface is outdated and can't be used (window resized or moved?)",
BACKING_SURFACE_OUTDATED = "The backing surface is outdated and can't be used (window resized or moved?)",
BACKING_SURFACE_TIMEOUT = "The backing surface couldn't be accessed in time (CPU or GPU too busy?)",
},
}
Expand Down

0 comments on commit 5b10b79

Please sign in to comment.