1 parent f2293db commit 1024d26Copy full SHA for 1024d26
1 file changed
neothesia/src/main.rs
@@ -174,15 +174,18 @@ impl Neothesia {
174
let frame = match self.surface.get_current_texture() {
175
wgpu::CurrentSurfaceTexture::Success(texture) => texture,
176
wgpu::CurrentSurfaceTexture::Occluded | wgpu::CurrentSurfaceTexture::Timeout => {
177
+ self.context.gpu.submit();
178
return;
179
}
180
wgpu::CurrentSurfaceTexture::Suboptimal(texture) => {
181
drop(texture);
182
self.surface.configure();
183
184
185
186
wgpu::CurrentSurfaceTexture::Outdated => {
187
188
189
190
191
wgpu::CurrentSurfaceTexture::Lost => {
0 commit comments