Index: gm/tilemodes.cpp |
diff --git a/gm/tilemodes.cpp b/gm/tilemodes.cpp |
index be7f924f7903a913e0217816f9e6e190e4a440e7..5098a836e0f3a7c64e6a66004f730ec755ef0788 100644 |
--- a/gm/tilemodes.cpp |
+++ b/gm/tilemodes.cpp |
@@ -130,6 +130,12 @@ protected: |
for (size_t kx = 0; kx < SK_ARRAY_COUNT(gModes); kx++) { |
for (size_t ky = 0; ky < SK_ARRAY_COUNT(gModes); ky++) { |
SkPaint paint; |
+#if 1 // Temporary change to regen bitmap before each draw. This may help tracking down an issue |
+ // on SGX where resizing NPOT textures to POT textures exhibits a driver bug. |
+ if (!fPowerOfTwoSize) { |
+ makebm(&fTexture[i], gConfigs[i], size, size); |
+ } |
+#endif |
setup(&paint, fTexture[i], gFilters[j], gModes[kx], gModes[ky]); |
paint.setDither(true); |