Skip to content

Commit c433f38

Browse files
committed
replace || with * in if comparison statement
- so that it works on etienne's lenovo hardware
1 parent 3032f88 commit c433f38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/shaders/frag.glsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ void main() {
2424
float gamma = .0045 * charsStep / pointSize;
2525

2626
//null-border case
27-
if (borderWidth == 0. || borderColor.a == 0.) {
27+
if (borderWidth * borderColor.a == 0.) {
2828
float charAmt = smoothstep(.748 - gamma, .748 + gamma, dist);
2929
gl_FragColor = vec4(charColor.rgb, charAmt*charColor.a);
3030
return;

0 commit comments

Comments
 (0)