Add check in GrGpu createTexture to make sure we don't create multisampled textures.

BUG=skia:

Review URL: https://codereview.chromium.org/1138223003
This commit is contained in:
egdaniel 2015-05-12 13:36:30 -07:00 committed by Commit bot
parent dd4e56849e
commit 8c9b6f1d71

View File

@ -76,6 +76,11 @@ GrTexture* GrGpu::createTexture(const GrSurfaceDesc& origDesc, bool budgeted,
return NULL;
}
// We currently not support multisampled textures
if (!isRT && desc.fSampleCnt > 0) {
return NULL;
}
GrTexture *tex = NULL;
if (isRT) {