Fix early termination of GM when 16x msaa rt can't be created.

git-svn-id: http://skia.googlecode.com/svn/trunk@3744 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
bsalomon@google.com 2012-04-20 19:08:44 +00:00
parent 72ae6bd24e
commit daf12bb01a

View File

@ -845,7 +845,7 @@ int main(int argc, char * const argv[]) {
desc.fSampleCnt = gRec[i].fSampleCnt;
GrTexture* tex = gr->createUncachedTexture(desc, NULL, 0);
if (!tex) {
return false;
continue;
}
rt.reset(tex->asRenderTarget());
rt.get()->ref();