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:
parent
72ae6bd24e
commit
daf12bb01a
@ -845,7 +845,7 @@ int main(int argc, char * const argv[]) {
|
|||||||
desc.fSampleCnt = gRec[i].fSampleCnt;
|
desc.fSampleCnt = gRec[i].fSampleCnt;
|
||||||
GrTexture* tex = gr->createUncachedTexture(desc, NULL, 0);
|
GrTexture* tex = gr->createUncachedTexture(desc, NULL, 0);
|
||||||
if (!tex) {
|
if (!tex) {
|
||||||
return false;
|
continue;
|
||||||
}
|
}
|
||||||
rt.reset(tex->asRenderTarget());
|
rt.reset(tex->asRenderTarget());
|
||||||
rt.get()->ref();
|
rt.get()->ref();
|
||||||
|
Loading…
Reference in New Issue
Block a user