diff --git a/third_party/externals/angle2/src/libANGLE/renderer/vulkan/TextureVk.cpp b/third_party/externals/angle2/src/libANGLE/renderer/vulkan/TextureVk.cpp index 65d3c552971593e29e48148a9d0904ecb8801baf..fce436d20a80d05f58fc89e79b2b00af2e3d9a88 100644 --- a/third_party/externals/angle2/src/libANGLE/renderer/vulkan/TextureVk.cpp +++ b/third_party/externals/angle2/src/libANGLE/renderer/vulkan/TextureVk.cpp @@ -2571,7 +2571,7 @@ void TextureVk::prepareForGenerateMipmap(ContextVk *contextVk) // Generate bitmask for (baseLevel, maxLevel]. `+1` because bitMask takes `the number of bits` // but levels start counting from 0 gl::TexLevelMask levelsMask(angle::BitMask(maxLevel.get() + 1)); - levelsMask &= static_cast(~angle::Bit(baseLevel.get())); + levelsMask &= static_cast(~angle::BitMask(firstGeneratedLevel.get())); // Remove (baseLevel, maxLevel] from mRedefinedLevels. These levels are no longer incompatibly // defined if they previously were. The corresponding bits in mRedefinedLevels should be // cleared.