Index: src/gpu/instanced/InstancedRendering.cpp |
diff --git a/src/gpu/instanced/InstancedRendering.cpp b/src/gpu/instanced/InstancedRendering.cpp |
index fd9df6efe9dc7a73537c712c594f794ba08034cb..af89b6cf6e4fb485fd28f858c1d04d22e5c42d6d 100644 |
--- a/src/gpu/instanced/InstancedRendering.cpp |
+++ b/src/gpu/instanced/InstancedRendering.cpp |
@@ -452,7 +452,8 @@ void InstancedRendering::beginFlush(GrResourceProvider* rp) { |
if (!fParams.empty()) { |
fParamsBuffer.reset(rp->createBuffer(fParams.count() * sizeof(ParamsTexel), |
kTexel_GrBufferType, kDynamic_GrAccessPattern, |
- GrResourceProvider::kNoPendingIO_Flag, |
+ GrResourceProvider::kNoPendingIO_Flag | |
+ GrResourceProvider::kRequireGpuMemory_Flag, |
fParams.begin())); |
if (!fParamsBuffer) { |
return; |