Chromium Code Reviews| Index: src/gpu/gl/GrGLCaps.cpp |
| diff --git a/src/gpu/gl/GrGLCaps.cpp b/src/gpu/gl/GrGLCaps.cpp |
| index 8f2d4c129742fb9cbcb0be099b7538fbbec386d4..df244437b63a1071c959f689ca93a40fe3bb1950 100644 |
| --- a/src/gpu/gl/GrGLCaps.cpp |
| +++ b/src/gpu/gl/GrGLCaps.cpp |
| @@ -444,6 +444,10 @@ void GrGLCaps::initConfigRenderableTable(const GrGLContextInfo& ctxInfo) { |
| } |
| } |
| + if (this->isConfigTexturable(kRGBA_float_GrPixelConfig)) { |
| + fConfigRenderSupport[kRGBA_float_GrPixelConfig][kNo_MSAA] = true; |
| + } |
| + |
| // If we don't support MSAA then undo any places above where we set a config as renderable with |
| // msaa. |
| if (kNone_MSFBOType == fMSFBOType) { |
| @@ -558,6 +562,13 @@ void GrGLCaps::initConfigTexturableTable(const GrGLContextInfo& ctxInfo, const G |
| } else { |
| fConfigTextureSupport[kR11_EAC_GrPixelConfig] = version >= GR_GL_VER(3, 0); |
| } |
| + |
| + // Check for floating point texture support |
| + bool hasFPTexture = (kGL_GrGLStandard == standard); |
|
bsalomon
2014/07/09 14:06:42
It wasn't required in GL until 3.1 but is availabl
|
| + if (!hasFPTexture) { |
| + hasFPTexture = ctxInfo.hasExtension("GL_OES_texture_float"); |
|
bsalomon
2014/07/09 14:06:42
RGBA32F is required as of ES3.1, we should check t
|
| + } |
| + fConfigTextureSupport[kRGBA_float_GrPixelConfig] = hasFPTexture; |
| } |
| bool GrGLCaps::readPixelsSupported(const GrGLInterface* intf, |