slint/sixtyfps_runtime/rendering_backends/gl
Simon Hausmann 25fac2bcd5 GL backend: Avoid run-time opengl errors with clipped zero width or height rectangles
If a Rectangle has a border-radius and clipping, we use an FBO to render
the children and then use femtovg's stencil clipping. If the Rectangle
has a zero width or height, we would end up trying to create a texture
with such dimensions, which produces run-time opengl errors.

We can detect this situation and avoid it early on. The same might happen for shadows.

Fixes #377
2021-08-03 16:47:23 +02:00
..
fonts Implement basic font fallbacks for WASM and macOS 2021-01-14 08:53:14 +01:00
Cargo.toml Remove the freetype dependency on Windows and macOS 2021-07-13 19:29:49 +02:00
eventloop.rs Janitor: Fix clippy::redundant_closure 2021-07-23 13:48:52 +02:00
fonts.rs Janitor: Fix clippy::needless_return 2021-07-30 09:27:48 +02:00
graphics_window.rs cSpell: silence graphics_window.rs 2021-08-03 16:14:40 +02:00
images.rs GL backend: Avoid run-time opengl errors with clipped zero width or height rectangles 2021-08-03 16:47:23 +02:00
lib.rs GL backend: Avoid run-time opengl errors with clipped zero width or height rectangles 2021-08-03 16:47:23 +02:00
svg.rs Update license date 2021-07-02 15:55:54 +02:00