diff options
author | Beth Thibodeau <ethibodeau@google.com> | 2021-06-23 23:08:55 -0400 |
---|---|---|
committer | Beth Thibodeau <ethibodeau@google.com> | 2021-06-24 11:54:03 -0400 |
commit | 85a7e84034b0a3e9dd2203bb7c202bb7aac8ea13 (patch) | |
tree | d2d7ce1386d4a581c2560f4c95aee1183b06b562 /rs/java/android/renderscript/ProgramVertexFixedFunction.java | |
parent | f1c4d4e1a4cf03dae5a3a1df0c0992f3abaf0ba2 (diff) |
Fix settings gear visibility
When the settings gear is first initialized the width can be reported as
0, which lead to NaN in the `map` function and throwing off the other
calculations. This adds a check to the width so it will simply be set
invisible in that case instead
Fixes: 185929062
Test: manual (repro steps in bug)
Change-Id: Id2a8582e8342d807825536bfcaac7d79a042c7cc
Diffstat (limited to 'rs/java/android/renderscript/ProgramVertexFixedFunction.java')
0 files changed, 0 insertions, 0 deletions