Commit 36ab960e by Xinyi He Committed by Commit Bot

Vulkan: Resize the result vector in EGLChooseConfigTest end2end test

Resize the defaultConfigs vector to its actual size to avoid using nullptr elements to get attributes. BUG=angleproject:4195 Change-Id: I3cbad9ee8c2c9faeaa30f72a04cf2c071f79db19 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/1949985 Commit-Queue: Jamie Madill <jmadill@chromium.org> Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org>
parent 92183a26
...@@ -44,6 +44,7 @@ TEST_P(EGLChooseConfigTest, Defaults) ...@@ -44,6 +44,7 @@ TEST_P(EGLChooseConfigTest, Defaults)
defaultConfigs.size(), &defaultConfigCount)); defaultConfigs.size(), &defaultConfigCount));
ASSERT_EGL_SUCCESS(); ASSERT_EGL_SUCCESS();
ASSERT_LE(defaultConfigCount, allConfigCount); ASSERT_LE(defaultConfigCount, allConfigCount);
defaultConfigs.resize(defaultConfigCount);
// Check that the default configs all have the default attribute values we care about: // Check that the default configs all have the default attribute values we care about:
for (EGLConfig config : defaultConfigs) for (EGLConfig config : defaultConfigs)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment