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:
parent
dd4e56849e
commit
8c9b6f1d71
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user