aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/tilemodes.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gm/tilemodes.cpp')
-rw-r--r--gm/tilemodes.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/gm/tilemodes.cpp b/gm/tilemodes.cpp
index be7f924f79..5098a836e0 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);