diff options
Diffstat (limited to 'src/gpu/GrDrawingManager.cpp')
-rw-r--r-- | src/gpu/GrDrawingManager.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/gpu/GrDrawingManager.cpp b/src/gpu/GrDrawingManager.cpp index eaacac246e..1aaa6f7ad2 100644 --- a/src/gpu/GrDrawingManager.cpp +++ b/src/gpu/GrDrawingManager.cpp @@ -171,14 +171,16 @@ GrSemaphoresSubmitted GrDrawingManager::internalFlush(GrSurfaceProxy*, } #endif - GrResourceAllocator alloc(fContext->resourceProvider()); - for (int i = 0; i < fOpLists.count(); ++i) { - fOpLists[i]->gatherProxyIntervals(&alloc); - } + { + GrResourceAllocator alloc(fContext->resourceProvider()); + for (int i = 0; i < fOpLists.count(); ++i) { + fOpLists[i]->gatherProxyIntervals(&alloc); + } #ifdef MDB_ALLOC_RESOURCES - alloc.assign(); + alloc.assign(); #endif + } for (int i = 0; i < fOpLists.count(); ++i) { if (!fOpLists[i]->instantiate(fContext->resourceProvider())) { |