зеркало из https://github.com/mozilla/moz-skia.git
replace UINT32_MAX with portable macro
git-svn-id: http://skia.googlecode.com/svn/trunk@741 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
Родитель
618ef5ee3b
Коммит
d2938db1d9
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче