Index: src/gpu/GrDistanceFieldTextContext.cpp |
diff --git a/src/gpu/GrDistanceFieldTextContext.cpp b/src/gpu/GrDistanceFieldTextContext.cpp |
index db98238a0ed70801bbd4e5aa161da9943f8f3ca9..a012bc28b7f9e2929b8349ee4ed5e43d6ae74e05 100755 |
--- a/src/gpu/GrDistanceFieldTextContext.cpp |
+++ b/src/gpu/GrDistanceFieldTextContext.cpp |
@@ -635,12 +635,12 @@ void GrDistanceFieldTextContext::flush() { |
return; |
} |
- GrDrawState drawState; |
- drawState.setFromPaint(fPaint, fContext->getMatrix(), fContext->getRenderTarget()); |
- bool useColorVerts = !fUseLCDText; |
- set_vertex_attributes(&drawState, useColorVerts); |
- |
if (fCurrVertex > 0) { |
+ GrDrawState drawState; |
+ drawState.setFromPaint(fPaint, fContext->getMatrix(), fContext->getRenderTarget()); |
tfarina
2014/11/18 17:35:31
is fContext NULL if fCurrVertex is < 0?
Otherwise
|
+ bool useColorVerts = !fUseLCDText; |
+ set_vertex_attributes(&drawState, useColorVerts); |
+ |
// setup our sampler state for our text texture/atlas |
SkASSERT(SkIsAlign4(fCurrVertex)); |