| Index: src/gpu/gl/GrGLSL.h
|
| diff --git a/src/gpu/gl/GrGLSL.h b/src/gpu/gl/GrGLSL.h
|
| index 869b0e180c44d0fd2a2ff68e556a23a6c8eba02a..883cc9b41accd7b342ef21076c11255ce66acd08 100644
|
| --- a/src/gpu/gl/GrGLSL.h
|
| +++ b/src/gpu/gl/GrGLSL.h
|
| @@ -54,7 +54,7 @@ static inline int GrSLTypeToVecLength(GrSLType type) {
|
| 1, // kMat44f_GrSLType
|
| 1, // kSampler2D_GrSLType
|
| };
|
| - GrAssert((size_t) type < GR_ARRAY_COUNT(kVecLengths));
|
| + GR_STATIC_ASSERT(kGrSLTypeCount == GR_ARRAY_COUNT(kVecLengths));
|
| return kVecLengths[type];
|
| }
|
|
|
|
|