aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-01-28 20:54:15 +0000
committerGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-01-28 20:54:15 +0000
commitd2938db1d9f42a5b53cf9ba1dbc8df96603b5952 (patch)
tree656de36f885d870604feb6714ec8afc402b64a81
parent618ef5ee3bc1fae284c766597fd518faabf7373d (diff)
replace UINT32_MAX with portable macro
git-svn-id: http://skia.googlecode.com/svn/trunk@741 2bbb7eff-a529-9590-31e7-b0007b416f81
-rw-r--r--gpu/src/GrGpuGLShaders2.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/gpu/src/GrGpuGLShaders2.cpp b/gpu/src/GrGpuGLShaders2.cpp
index 225abc1cf3..88c2b5c2cd 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<uint32_t>(-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;