зеркало из https://github.com/mozilla/moz-skia.git
Fix crash when buidling with no deferred drawing in grcontext
git-svn-id: http://skia.googlecode.com/svn/trunk@4329 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
Родитель
70fc152576
Коммит
1015e03467
|
@ -1792,8 +1792,10 @@ void GrContext::setupDrawBuffer() {
|
|||
#if BATCH_RECT_TO_RECT
|
||||
fDrawBuffer->setQuadIndexBuffer(this->getQuadIndexBuffer());
|
||||
#endif
|
||||
fDrawBuffer->setAutoFlushTarget(fGpu);
|
||||
fDrawBuffer->setDrawState(fDrawState);
|
||||
if (fDrawBuffer) {
|
||||
fDrawBuffer->setAutoFlushTarget(fGpu);
|
||||
fDrawBuffer->setDrawState(fDrawState);
|
||||
}
|
||||
}
|
||||
|
||||
GrDrawTarget* GrContext::getTextTarget(const GrPaint& paint) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче