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:
Elias Naur
2019-07-28 13:25:00 -07:00
parent d93925c0c2
commit d178167c3b
+4
View File
@@ -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;
}
`