Index: src/gpu/GrTargetCommands.cpp |
diff --git a/src/gpu/GrTargetCommands.cpp b/src/gpu/GrTargetCommands.cpp |
index bf1a7af2812227e69314945e497db0457f687a5c..7e57c0329190a328782050d7355d480118f66455 100644 |
--- a/src/gpu/GrTargetCommands.cpp |
+++ b/src/gpu/GrTargetCommands.cpp |
@@ -11,6 +11,7 @@ |
void GrTargetCommands::reset() { |
fCmdBuffer.reset(); |
+ fBatchTarget.reset(); |
} |
void GrTargetCommands::flush(GrInOrderDrawBuffer* iodb) { |
@@ -31,8 +32,6 @@ void GrTargetCommands::flush(GrInOrderDrawBuffer* iodb) { |
} |
} |
- iodb->getVertexAllocPool()->unmap(); |
- iodb->getIndexAllocPool()->unmap(); |
fBatchTarget.preFlush(); |
CmdBuffer::Iter iter(fCmdBuffer); |