Fix vertex buffer size computation when deferred text is disabled. This change makes it consistent with recent changes to the vertex layout bitfield in Issue 106.
git-svn-id: http://skia.googlecode.com/svn/trunk@701 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/gpu/src/GrContext.cpp b/gpu/src/GrContext.cpp
index e5e378f..94398cf 100644
--- a/gpu/src/GrContext.cpp
+++ b/gpu/src/GrContext.cpp
@@ -30,7 +30,9 @@
#if DEFER_TEXT_RENDERING
static const uint32_t POOL_VB_SIZE = 2048 *
- GrDrawTarget::VertexSize(GrDrawTarget::kTextFormat_VertexLayoutBit);
+ GrDrawTarget::VertexSize(
+ GrDrawTarget::kTextFormat_VertexLayoutBit |
+ GrDrawTarget::StageTexCoordVertexLayoutBit(0,0));
static const uint32_t NUM_POOL_VBS = 8;
#else
static const uint32_t POOL_VB_SIZE = 0;