| Index: src/gpu/gl/GrGLCaps.cpp
|
| diff --git a/src/gpu/gl/GrGLCaps.cpp b/src/gpu/gl/GrGLCaps.cpp
|
| index b6938f35dcc3872888c7876ebb7910c0a5a89d24..60b9a701286341b860180211a6259f0eb250d996 100644
|
| --- a/src/gpu/gl/GrGLCaps.cpp
|
| +++ b/src/gpu/gl/GrGLCaps.cpp
|
| @@ -47,6 +47,7 @@ void GrGLCaps::reset() {
|
| fVertexArrayObjectSupport = false;
|
| fUseNonVBOVertexAndIndexDynamicData = false;
|
| fIsCoreProfile = false;
|
| + fFixedFunctionSupport = false;
|
| fDiscardFBSupport = false;
|
| }
|
|
|
| @@ -84,6 +85,7 @@ GrGLCaps& GrGLCaps::operator = (const GrGLCaps& caps) {
|
| fVertexArrayObjectSupport = caps.fVertexArrayObjectSupport;
|
| fUseNonVBOVertexAndIndexDynamicData = caps.fUseNonVBOVertexAndIndexDynamicData;
|
| fIsCoreProfile = caps.fIsCoreProfile;
|
| + fFixedFunctionSupport = caps.fFixedFunctionSupport;
|
| fDiscardFBSupport = caps.fDiscardFBSupport;
|
|
|
| return *this;
|
| @@ -117,6 +119,7 @@ void GrGLCaps::init(const GrGLContextInfo& ctxInfo, const GrGLInterface* gli) {
|
| fIsCoreProfile = SkToBool(profileMask & GR_GL_CONTEXT_CORE_PROFILE_BIT);
|
| }
|
| if (!fIsCoreProfile) {
|
| + fFixedFunctionSupport = true;
|
| GR_GL_GetIntegerv(gli, GR_GL_MAX_TEXTURE_COORDS, &fMaxFixedFunctionTextureCoords);
|
| // Sanity check
|
| SkASSERT(fMaxFixedFunctionTextureCoords > 0 && fMaxFixedFunctionTextureCoords < 128);
|
|
|