diff options
Diffstat (limited to 'src/gpu/GrGLInterface.cpp')
-rw-r--r-- | src/gpu/GrGLInterface.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gpu/GrGLInterface.cpp b/src/gpu/GrGLInterface.cpp index d46aaa755f..66aea63b5c 100644 --- a/src/gpu/GrGLInterface.cpp +++ b/src/gpu/GrGLInterface.cpp @@ -178,6 +178,7 @@ GrGLInterface::GrGLInterface() { fStencilOpSeparate = NULL; fTexImage2D = NULL; fTexParameteri = NULL; + fTexStorage2D = NULL; fTexSubImage2D = NULL; fUniform1f = NULL; fUniform1i = NULL; @@ -416,6 +417,14 @@ bool GrGLInterface::validate() const { return false; } + // GL_EXT_texture_storage is part of desktop 4.2 + // There is a desktop ARB extension and an ES+desktop EXT extension + if ((kDesktop_GrGLBinding == fBindingsExported && + (glVer >= GR_GL_VER(4,2)) || + GrGLHasExtensionFromString("GL_ARB_texture_storage", ext)) || + GrGLHasExtensionFromString("GL_EXT_texture_storage", ext)) { + } + // FBO MSAA if (kDesktop_GrGLBinding == fBindingsExported) { // GL 3.0 and the ARB extension have multisample + blit |