Fix mask from change r1155. (I blame the mistake on skipping afternoon coffee :))
authorbsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Wed, 20 Apr 2011 13:01:29 +0000 (13:01 +0000)
committerbsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Wed, 20 Apr 2011 13:01:29 +0000 (13:01 +0000)
git-svn-id: http://skia.googlecode.com/svn/trunk@1161 2bbb7eff-a529-9590-31e7-b0007b416f81

gpu/src/GrGpuGLShaders2.cpp

index 94b941f..dbd50bf 100644 (file)
@@ -250,7 +250,7 @@ static inline uint32_t roh(uint32_t x) {
 }
 
 static inline uint32_t swapouter(uint32_t x) {
-    return (x & 0x00ff00) | (x << 24) | (x >> 24);
+    return (x & 0x00ffff00) | (x << 24) | (x >> 24);
 }
 
 GrGpuGLShaders2::ProgramCache::HashKey::HashKey(const ProgramDesc& desc) {