diff options
author | bsalomon <bsalomon@google.com> | 2014-12-03 10:46:08 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-12-03 10:46:08 -0800 |
commit | ee64d6ef49fbb63e0fc7934334c5ae5e900f5336 (patch) | |
tree | fb2450eb953768d226da88159245fb1f24fd9c9f /src/gpu | |
parent | 8b0197ef2e32be9d62e79d58f8b50811975c79c6 (diff) |
Add glGetShaderPrecisionFormat
Review URL: https://codereview.chromium.org/778703003
Diffstat (limited to 'src/gpu')
-rw-r--r-- | src/gpu/gl/GrGLAssembleInterface.cpp | 2 | ||||
-rw-r--r-- | src/gpu/gl/GrGLInterface.cpp | 9 |
2 files changed, 11 insertions, 0 deletions
diff --git a/src/gpu/gl/GrGLAssembleInterface.cpp b/src/gpu/gl/GrGLAssembleInterface.cpp index 25f9e161f4..c91da9e6c7 100644 --- a/src/gpu/gl/GrGLAssembleInterface.cpp +++ b/src/gpu/gl/GrGLAssembleInterface.cpp @@ -131,6 +131,7 @@ const GrGLInterface* GrGLAssembleGLInterface(void* ctx, GrGLGetProc get) { GET_PROC(GetShaderiv); GET_PROC(GetString); GET_PROC(GetStringi); + GET_PROC(GetShaderPrecisionFormat); GET_PROC(GetTexLevelParameteriv); GET_PROC(GenQueries); GET_PROC(GenTextures); @@ -371,6 +372,7 @@ const GrGLInterface* GrGLAssembleGLESInterface(void* ctx, GrGLGetProc get) { GET_PROC(GetProgramInfoLog); GET_PROC(GetProgramiv); GET_PROC(GetShaderInfoLog); + GET_PROC(GetShaderPrecisionFormat); GET_PROC(GetShaderiv); GET_PROC(GetString); GET_PROC(GetStringi); diff --git a/src/gpu/gl/GrGLInterface.cpp b/src/gpu/gl/GrGLInterface.cpp index 8054fd5d1e..d4db766bcc 100644 --- a/src/gpu/gl/GrGLInterface.cpp +++ b/src/gpu/gl/GrGLInterface.cpp @@ -461,6 +461,15 @@ bool GrGLInterface::validate() const { } } + if (kGLES_GrGLStandard == fStandard || glVer >= GR_GL_VER(4,1) || + fExtensions.has("GL_ARB_ES2_compatibility")) { +#if 0 // Enable this once Chrome gives us the function ptr + if (NULL == fFunctions.fGetShaderPrecisionFormat) { + RETURN_FALSE_INTERFACE + } +#endif + } + if (fExtensions.has("GL_NV_path_rendering")) { if (NULL == fFunctions.fPathCommands || NULL == fFunctions.fPathCoords || |