mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-03 00:16:15 +00:00
ui/app/internal/gpu: add workaround for render corruption
Fixes gio#13 Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -480,6 +480,10 @@ void main() {
|
||||
float area = 0.5*(sides.z - sides.z*sides.y + 1.0 - sides.x+sides.x*sides.w);
|
||||
area *= width;
|
||||
|
||||
// Work around issue #13.
|
||||
if (width == 0.0)
|
||||
area = 0.0;
|
||||
|
||||
gl_FragColor.r = area;
|
||||
}
|
||||
`
|
||||
|
||||
Reference in New Issue
Block a user