diff options
author | 2014-11-18 09:40:40 -0800 | |
---|---|---|
committer | 2014-11-18 09:40:40 -0800 | |
commit | 780b11e4ec3e793c1e80443cf2d1f7119fe9c565 (patch) | |
tree | 89a83d4837be4e8968f0445289d14c77e0a430e2 /src/gpu/GrDistanceFieldTextContext.cpp | |
parent | 0bd57b2e1eb6ff824ac59a461d1a8aa24a808886 (diff) |
fix for use of uninit variable
TBR=
BUG=skia:
Review URL: https://codereview.chromium.org/740463002
Diffstat (limited to 'src/gpu/GrDistanceFieldTextContext.cpp')
-rwxr-xr-x | src/gpu/GrDistanceFieldTextContext.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gpu/GrDistanceFieldTextContext.cpp b/src/gpu/GrDistanceFieldTextContext.cpp index db98238a0e..a012bc28b7 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()); + bool useColorVerts = !fUseLCDText; + set_vertex_attributes(&drawState, useColorVerts); + // setup our sampler state for our text texture/atlas SkASSERT(SkIsAlign4(fCurrVertex)); |