"Reverting" [HACK] This works around the error in VS2015U3
authorMatthew Leibowitz <mattleibow@live.com>
Sun, 4 Feb 2018 12:45:54 +0000 (14:45 +0200)
committerMatthew Leibowitz <mattleibow@live.com>
Sun, 4 Feb 2018 12:45:54 +0000 (14:45 +0200)
 - mono/SkiaSharp #114
 - "An internal error has occurred in the compiler."

include/private/GrSwizzle.h

index d0d48b9..391740b 100644 (file)
@@ -117,6 +117,8 @@ public:
 
     static GrSwizzle CreateRandom(SkRandom* random) {
         switch (random->nextU() % 4) {
+            case 0:
+                return RGBA();
             case 1:
                 return BGRA();
             case 2:
@@ -124,6 +126,7 @@ public:
             case 3:
                 return AAAA();
             default:
+                SkFAIL("Mod is broken?!?");
                 return RGBA();
         }
     }