| Index: src/gpu/gl/GrGLGpu.cpp
|
| diff --git a/src/gpu/gl/GrGLGpu.cpp b/src/gpu/gl/GrGLGpu.cpp
|
| index df3a5e66846f0ab070d7a4ce32a20987a86418aa..6a8d83b019fdd4d060b8773ad4ffcdd60fc2d5a8 100644
|
| --- a/src/gpu/gl/GrGLGpu.cpp
|
| +++ b/src/gpu/gl/GrGLGpu.cpp
|
| @@ -2493,6 +2493,16 @@ bool GrGLGpu::configToGLFormats(GrPixelConfig config,
|
| }
|
| break;
|
|
|
| + case kRGBA_half_GrPixelConfig:
|
| + *internalFormat = GR_GL_RGBA16F;
|
| + *externalFormat = GR_GL_RGBA;
|
| + if (kGL_GrGLStandard == this->glStandard() || this->glVersion() >= GR_GL_VER(3, 0)) {
|
| + *externalType = GR_GL_HALF_FLOAT;
|
| + } else {
|
| + *externalType = GR_GL_HALF_FLOAT_OES;
|
| + }
|
| + break;
|
| +
|
| default:
|
| return false;
|
| }
|
|
|