Disable MIP mapping on PowerVR 54x. This GPU spews a lot of errors when using GenerateMipMaps.
BUG=skia:4514 Review URL: https://codereview.chromium.org/1414743008
This commit is contained in:
parent
3c8ceb7350
commit
e72bd028d9
@ -358,6 +358,11 @@ void GrGLCaps::init(const GrContextOptions& contextOptions,
|
||||
fMipMapSupport = fNPOTTextureTileSupport || ctxInfo.hasExtension("GL_IMG_texture_npot");
|
||||
}
|
||||
|
||||
// Using MIPs on this GPU seems to be a source of trouble.
|
||||
if (kPowerVR54x_GrGLRenderer == ctxInfo.renderer()) {
|
||||
fMipMapSupport = false;
|
||||
}
|
||||
|
||||
GR_GL_GetIntegerv(gli, GR_GL_MAX_TEXTURE_SIZE, &fMaxTextureSize);
|
||||
GR_GL_GetIntegerv(gli, GR_GL_MAX_RENDERBUFFER_SIZE, &fMaxRenderTargetSize);
|
||||
// Our render targets are always created with textures as the color
|
||||
|
Loading…
Reference in New Issue
Block a user