diff options
author | Vladimir Levin <vmpstr@chromium.org> | 2017-11-15 12:01:51 -0800 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-11-15 20:25:42 +0000 |
commit | 70fb479ae6a311385be576f9b006fc5dc1ecdfd9 (patch) | |
tree | bf1e4aabf78fd91174f924cf71794511b803848c /gn/tests.gni | |
parent | 559f556d9d70ef9d1202e436a56d48364b279ac6 (diff) |
Ensure that removing last extension from GrGLExtension doesn't assert.
This patch fixes an assert that triggers when removing the last
extension in the list, since the index operator goes out of bounds.
Added a test that fails without the code changes and passes with the
changes.
R=bsalomon@chromium.org
Change-Id: I0d561b150899c178f638dde088af773fddf112d9
Reviewed-on: https://skia-review.googlesource.com/72000
Commit-Queue: Vladimir Levin <vmpstr@chromium.org>
Commit-Queue: Brian Salomon <bsalomon@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'gn/tests.gni')
-rw-r--r-- | gn/tests.gni | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gn/tests.gni b/gn/tests.gni index 02cc45fcb1..6579820877 100644 --- a/gn/tests.gni +++ b/gn/tests.gni @@ -91,6 +91,7 @@ tests_sources = [ "$_tests/GrCCPRTest.cpp", "$_tests/GrContextAbandonTest.cpp", "$_tests/GrContextFactoryTest.cpp", + "$_tests/GrGLExtensionsTest.cpp", "$_tests/GrMemoryPoolTest.cpp", "$_tests/GrMeshTest.cpp", "$_tests/GrMipMappedTest.cpp", |