| Index: src/gpu/gl/GrGLInterface.cpp
|
| diff --git a/src/gpu/gl/GrGLInterface.cpp b/src/gpu/gl/GrGLInterface.cpp
|
| index 38a7f9d7f43e874bc051cbfceef6091c2e611746..d15b4cc48bf5530672d49a9b3c3a51243aa46d12 100644
|
| --- a/src/gpu/gl/GrGLInterface.cpp
|
| +++ b/src/gpu/gl/GrGLInterface.cpp
|
| @@ -44,16 +44,6 @@ bool GrGLInterface::validate(GrGLBinding binding) const {
|
| return false;
|
| }
|
|
|
| - bool isCoreProfile = false;
|
| - if (kDesktop_GrGLBinding == binding) {
|
| - if (NULL == this->fGetIntegerv) {
|
| - return false;
|
| - }
|
| - GrGLint profileMask = 0;
|
| - fGetIntegerv(GR_GL_CONTEXT_PROFILE_MASK, &profileMask);
|
| - isCoreProfile = SkToBool(profileMask & GR_GL_CONTEXT_CORE_PROFILE_BIT);
|
| - }
|
| -
|
| // functions that are always required
|
| if (NULL == fActiveTexture ||
|
| NULL == fAttachShader ||
|
| @@ -154,6 +144,13 @@ bool GrGLInterface::validate(GrGLBinding binding) const {
|
|
|
| GrGLVersion glVer = GrGLGetVersion(this);
|
|
|
| + bool isCoreProfile = false;
|
| + if (kDesktop_GrGLBinding == binding && glVer >= GR_GL_VER(3,2)) {
|
| + GrGLint profileMask;
|
| + GR_GL_GetIntegerv(this, GR_GL_CONTEXT_PROFILE_MASK, &profileMask);
|
| + isCoreProfile = SkToBool(profileMask & GR_GL_CONTEXT_CORE_PROFILE_BIT);
|
| + }
|
| +
|
| // Now check that baseline ES/Desktop fns not covered above are present
|
| // and that we have fn pointers for any advertised extensions that we will
|
| // try to use.
|
|
|