mirror of
https://github.com/storytold/cadcraft.git
synced 2026-11-22 13:57:08 -06:00
Some old graphics drivers (Mesa on Intel HD 4000, old Intel drivers on Windows) accept a render pass with a stencil buffer and then present a black window. Setting CADCRAFT_STENCIL to 0, no or false (any case) opens the window without one, so the app is usable on those machines. The window and the canvas take the stencil bits from the same place, so they always agree. Without a stencil buffer, clipped layout viewports draw unclipped; a warning in the log says so. --help lists the variable. Co-authored-by: Luca Toniolo <10792599+grandixximo@users.noreply.github.com>