| Index: src/gpu/gl/GrGLInterface.cpp
|
| diff --git a/src/gpu/gl/GrGLInterface.cpp b/src/gpu/gl/GrGLInterface.cpp
|
| index 56f1e59275687e66996ba95f1c4954f0aa28fec6..9f58c732216c4bef9ea31197a07331c80e4e4b90 100644
|
| --- a/src/gpu/gl/GrGLInterface.cpp
|
| +++ b/src/gpu/gl/GrGLInterface.cpp
|
| @@ -59,6 +59,7 @@ const GrGLInterface* GrGLInterfaceRemoveNVPR(const GrGLInterface* interface) {
|
| newInterface->fFunctions.fStencilThenCoverFillPathInstanced = NULL;
|
| newInterface->fFunctions.fStencilThenCoverStrokePathInstanced = NULL;
|
| newInterface->fFunctions.fProgramPathFragmentInputGen = NULL;
|
| + newInterface->fFunctions.fBindFragmentInputLocation = NULL;
|
| return newInterface;
|
| }
|
|
|
| @@ -483,7 +484,7 @@ bool GrGLInterface::validate() const {
|
| #endif
|
| }
|
|
|
| - if (fExtensions.has("GL_NV_path_rendering")) {
|
| + if (fExtensions.has("GL_NV_path_rendering") || fExtensions.has("GL_CHROMIUM_path_rendering")) {
|
| if (NULL == fFunctions.fMatrixLoadf ||
|
| NULL == fFunctions.fMatrixLoadIdentity ||
|
| NULL == fFunctions.fPathCommands ||
|
| @@ -515,6 +516,11 @@ bool GrGLInterface::validate() const {
|
| ) {
|
| RETURN_FALSE_INTERFACE
|
| }
|
| + if (fExtensions.has("GL_CHROMIUM_path_rendering")) {
|
| + if (NULL == fFunctions.fBindFragmentInputLocation) {
|
| + RETURN_FALSE_INTERFACE
|
| + }
|
| + }
|
| }
|
|
|
| if (fExtensions.has("GL_EXT_raster_multisample")) {
|
|
|