diff options
Diffstat (limited to 'src/gpu/gpu.cc')
| -rw-r--r-- | src/gpu/gpu.cc | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/gpu/gpu.cc b/src/gpu/gpu.cc index b9545bf..ebf709e 100644 --- a/src/gpu/gpu.cc +++ b/src/gpu/gpu.cc @@ -327,8 +327,7 @@ void gpu_init(GLFWwindow *window, int width, int height) { adapter_cb.userdata1 = &g_adapter; wgpuInstanceRequestAdapter(g_instance, &adapter_opts, adapter_cb); #endif - while (!g_adapter) - wgpuInstanceWaitAny(g_instance, 0, nullptr, 0); + while (!g_adapter) wgpuInstanceWaitAny(g_instance, 0, nullptr, 0); WGPUDeviceDescriptor device_desc = {}; #ifndef STRIP_ALL @@ -347,8 +346,7 @@ void gpu_init(GLFWwindow *window, int width, int height) { device_cb.userdata1 = &g_device; wgpuAdapterRequestDevice(g_adapter, &device_desc, device_cb); #endif - while (!g_device) - wgpuInstanceWaitAny(g_instance, 0, nullptr, 0); + while (!g_device) wgpuInstanceWaitAny(g_instance, 0, nullptr, 0); #if defined(DEMO_CROSS_COMPILE_WIN32) && !defined(STRIP_ALL) set_error_callback(g_device, handle_device_error); @@ -384,6 +382,4 @@ void gpu_simulate_until(float time) { } #endif -void gpu_shutdown() { - g_main_sequence.shutdown(); -}
\ No newline at end of file +void gpu_shutdown() { g_main_sequence.shutdown(); }
\ No newline at end of file |
