diff --git a/gpu/src/GrGpuGLShaders2.cpp b/gpu/src/GrGpuGLShaders2.cpp index 225abc1cf..88c2b5c2c 100644 --- a/gpu/src/GrGpuGLShaders2.cpp +++ b/gpu/src/GrGpuGLShaders2.cpp @@ -51,6 +51,8 @@ #define BOGUS_MATRIX_UNI_LOCATION 1000 #endif +#define GR_UINT32_MAX static_cast(-1) + struct GrGpuGLShaders2::StageUniLocations { GLint fTextureMatrixUni; GLint fSamplerUni; @@ -218,7 +220,7 @@ public: } entry->fLRUStamp = fCurrLRUStamp; - if (UINT32_MAX == fCurrLRUStamp) { + if (GR_UINT32_MAX == fCurrLRUStamp) { // wrap around! just trash our LRU, one time hit. for (int i = 0; i < fCount; ++i) { fEntries[i].fLRUStamp = 0;