diff options
Diffstat (limited to 'src/gpu/GrBufferAllocPool.cpp')
-rw-r--r-- | src/gpu/GrBufferAllocPool.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gpu/GrBufferAllocPool.cpp b/src/gpu/GrBufferAllocPool.cpp index b06c3ad94a..d029471a9e 100644 --- a/src/gpu/GrBufferAllocPool.cpp +++ b/src/gpu/GrBufferAllocPool.cpp @@ -91,7 +91,9 @@ void GrBufferAllocPool::reset() { fFirstPreallocBuffer = (fFirstPreallocBuffer + fPreallocBuffersInUse) % fPreallocBuffers.count(); } - fCpuData.reset(fGpu->getCaps().fBufferLockSupport ? 0 : fMinBlockSize); + // we may have created a large cpu mirror of a large VB. Reset the size + // to match our pre-allocated VBs. + fCpuData.reset(fMinBlockSize); GrAssert(0 == fPreallocBuffersInUse); VALIDATE(); } |