| Index: src/utils/SkTextureCompressor_ASTC.cpp
|
| diff --git a/src/utils/SkTextureCompressor_ASTC.cpp b/src/utils/SkTextureCompressor_ASTC.cpp
|
| index 1a0b2335333d1153f98e06deb999cd2ed9079124..fbae8504e50fe225b3fd70dd70f07cef9f381b76 100644
|
| --- a/src/utils/SkTextureCompressor_ASTC.cpp
|
| +++ b/src/utils/SkTextureCompressor_ASTC.cpp
|
| @@ -1708,8 +1708,7 @@
|
| // The rest of the CEM config will be between the dual plane bit selector
|
| // and the texel weight grid.
|
| const int lowCEM = static_cast<int>(read_astc_bits(fBlock, 23, 29));
|
| - SkASSERT(lastWeight >= dualPlaneBitLoc);
|
| - SkASSERT(lastWeight - dualPlaneBitLoc < 31);
|
| + SkASSERT(lastWeight - dualPlaneBitLoc > 31);
|
| int fullCEM = static_cast<int>(read_astc_bits(fBlock, dualPlaneBitLoc, lastWeight));
|
|
|
| // Attach the config at the end of the weight grid to the CEM values
|
|
|