summaryrefslogtreecommitdiffstats
path: root/tests/auto/opengl/qgl
diff options
context:
space:
mode:
authorEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@theqtcompany.com>2016-03-04 13:15:03 +0100
committerEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@theqtcompany.com>2016-03-31 12:53:26 +0000
commit05ed49519120fa2cc4e00417efa0524ba00228a4 (patch)
tree04da739a64ec57cb12329635cc129bf5d04db68e /tests/auto/opengl/qgl
parentea122fa9e30b78af6b7738284f33451741638444 (diff)
Fix possible out-of-bounds access when making distance fields
While extremely unlikely, there is a theoretical possibility that the '0' glyph of a given font will have a width or height of 1 pixel, in which case the (x + 1) / 2 way of getting the center would give us an out of bounds pixel. We just default to true in this case, since we cannot make any assumption based on the 0 glyph if it doesn't make any sense. If the image is invalid, we default to false. Change-Id: I36cea0b80c9d55aa10eb65db44d1b7ec8a40fc8c Reviewed-by: Yoann Lopes <yoann.lopes@theqtcompany.com>
Diffstat (limited to 'tests/auto/opengl/qgl')
0 files changed, 0 insertions, 0 deletions