be sure to allocate space for kDone_DrawOp before we write it (thanks Yang)
git-svn-id: http://skia.googlecode.com/svn/trunk@1831 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
parent
027de5f922
commit
dbccc88f84
@ -84,8 +84,10 @@ public:
|
||||
|
||||
void finish() {
|
||||
if (!fDone) {
|
||||
this->writeOp(kDone_DrawOp);
|
||||
this->doNotify();
|
||||
if (this->needOpBytes()) {
|
||||
this->writeOp(kDone_DrawOp);
|
||||
this->doNotify();
|
||||
}
|
||||
fDone = true;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user