aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm
diff options
context:
space:
mode:
Diffstat (limited to 'gm')
-rw-r--r--gm/imagefromyuvtextures.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/gm/imagefromyuvtextures.cpp b/gm/imagefromyuvtextures.cpp
index 4db805d60e..a6aa000f1f 100644
--- a/gm/imagefromyuvtextures.cpp
+++ b/gm/imagefromyuvtextures.cpp
@@ -118,6 +118,8 @@ protected:
return;
}
+ context->flush();
+ gpu->testingOnly_flushGpuAndSync();
for (int i = 0; i < 3; ++i) {
if (yuvTextures[i].isValid()) {
gpu->deleteTestingOnlyBackendTexture(yuvTextures[i]);