diff options
Diffstat (limited to 'src/fb.c')
| -rw-r--r-- | src/fb.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -65,7 +65,8 @@ bool pw_fb_iterate(struct pw_framebuffer *fb) { static uint8_t project_component(float r, float start, float size, uint8_t dim) { - if (SDL_fabsf(size) < 1.) { + if (SDL_isnan(r) || SDL_isnan(start) || SDL_isnan(size) || + SDL_fabsf(size) < 1.) { return 0; } |
