summaryrefslogtreecommitdiff
path: root/opengl/libagl/array.cpp
diff options
context:
space:
mode:
author Lloyd Pique <lpique@google.com> 2020-03-23 14:06:20 -0700
committer Lloyd Pique <lpique@google.com> 2020-03-23 14:32:17 -0700
commit7b53afeca0a041bac3913a54a6f4fed8fb47522a (patch)
tree32430af91a05c2e7753e3e5d03eb35e449f9683a /opengl/libagl/array.cpp
parentc993bf449d5942d1988438ddfcb48c861cf3669f (diff)
libui: Fix clamping of uint32_t source values
It turned out that clamping was not working for conversions from uint32_t values to int32_t values. This adds a test to verify that conversion is handled correctly for that case, along with correcting the logic for implementing the clamping. The tests for the floating point source value case are also extended to verify that source values near INT32_MAX and INT32_MIN are also handled as correctly as possible, despite the seven bits of precision that are lost. Bug: 149495759 Test: atest Size_test Change-Id: Iaa0560184e6c2dd0a9d288fff288fb159ee99f07
Diffstat (limited to 'opengl/libagl/array.cpp')
0 files changed, 0 insertions, 0 deletions