Capture/Replay: Allow serializing cube map array data.

This ASSERT was firing which was preventing several traces from
re-tracing.

Bug: angleproject:5133
Change-Id: I86d956bf0c95210bef5572a30fb786555d14522f
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3123226
Commit-Queue: Jamie Madill <jmadill@chromium.org>
Reviewed-by: Tim Van Patten <timvp@google.com>
Reviewed-by: Cody Northrop <cnorthrop@google.com>
This commit is contained in:
Jamie Madill 2021-08-26 10:30:23 -04:00 коммит произвёл Angle LUCI CQ
Родитель d72cad5e3e
Коммит 9a3f60f220
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -1124,7 +1124,8 @@ Result SerializeTextureData(JsonSerializer *json,
// Check for supported textures
ASSERT(index.getType() == gl::TextureType::_2D || index.getType() == gl::TextureType::_3D ||
index.getType() == gl::TextureType::_2DArray ||
index.getType() == gl::TextureType::CubeMap);
index.getType() == gl::TextureType::CubeMap ||
index.getType() == gl::TextureType::CubeMapArray);
GLenum glFormat = format.format;
GLenum glType = format.type;