Update os_sdl2.odin

This commit is contained in:
Emir
2024-07-24 10:27:22 +03:00
parent 95412df129
commit 57dc6c2e94

View File

@@ -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
}