diff options
| author | Emir <emircengiz21@gmail.com> | 2024-07-24 10:27:22 +0300 |
|---|---|---|
| committer | Emir <emircengiz21@gmail.com> | 2024-07-24 10:27:22 +0300 |
| commit | 57dc6c2e94473ec45ad6a8980e359fcd9cb8c409 (patch) | |
| tree | dacce059a68dc3cfdd20f2aba0e675eb017c5a30 | |
| parent | 95412df129fa3c6b19d5597b0aee78afcaa32340 (diff) | |
Update os_sdl2.odin
| -rw-r--r-- | vendor/wgpu/examples/sdl2/os_sdl2.odin | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/vendor/wgpu/examples/sdl2/os_sdl2.odin b/vendor/wgpu/examples/sdl2/os_sdl2.odin index bc48fd353..bbcec9923 100644 --- a/vendor/wgpu/examples/sdl2/os_sdl2.odin +++ b/vendor/wgpu/examples/sdl2/os_sdl2.odin @@ -76,12 +76,10 @@ os_get_surface :: proc(os: ^OS, instance: wgpu.Instance) -> wgpu.Surface { @(private="file") size_callback :: proc "c" (userdata: rawptr, event: ^sdl2.Event) -> c.int { - if event.type == .WINDOWEVENT { if event.window.event == .SIZE_CHANGED || event.window.event == .RESIZED { resize() } } - return 0 } |