| Index: src/gpu/gl/GrGLGpu.cpp
|
| diff --git a/src/gpu/gl/GrGLGpu.cpp b/src/gpu/gl/GrGLGpu.cpp
|
| index f5c646c86fb636161350ae4d28c98096bf7778e7..cbb4360f5d4b9d391b1363eee7a2143ca331217f 100644
|
| --- a/src/gpu/gl/GrGLGpu.cpp
|
| +++ b/src/gpu/gl/GrGLGpu.cpp
|
| @@ -1925,8 +1925,7 @@ bool GrGLGpu::onGetReadPixelsInfo(GrSurface* srcSurface, int width, int height,
|
| tempDrawInfo->fSwapRAndB = true;
|
| ElevateDrawPreference(drawPreference, kGpuPrefersDraw_DrawPreference);
|
| } else if (readConfig == kBGRA_8888_GrPixelConfig &&
|
| - !this->glCaps().readPixelsSupported(this->glInterface(), GR_GL_BGRA,
|
| - GR_GL_UNSIGNED_BYTE, srcConfig)) {
|
| + !this->glCaps().readPixelsSupported(this->glInterface(), readConfig, srcConfig)) {
|
| tempDrawInfo->fTempSurfaceDesc.fConfig = kRGBA_8888_GrPixelConfig;
|
| tempDrawInfo->fSwapRAndB = true;
|
| ElevateDrawPreference(drawPreference, kRequireDraw_DrawPreference);
|
|
|