| Index: src/gpu/gl/GrGLAssembleInterface.cpp
|
| diff --git a/src/gpu/gl/GrGLAssembleInterface.cpp b/src/gpu/gl/GrGLAssembleInterface.cpp
|
| index 6a4fbe20e0b214b57f624dd15708a73688afd3ef..b0f0430ffb3e20bca1e0cbbe945fa8556f501499 100644
|
| --- a/src/gpu/gl/GrGLAssembleInterface.cpp
|
| +++ b/src/gpu/gl/GrGLAssembleInterface.cpp
|
| @@ -163,6 +163,11 @@ const GrGLInterface* GrGLAssembleGLInterface(void* ctx, GrGLGetProc get) {
|
| GET_PROC_SUFFIX(TexStorage2D, EXT);
|
| }
|
| GET_PROC(TexSubImage2D);
|
| + if (glVer >= GR_GL_VER(4,5) || extensions.has("GL_ARB_texture_barrier")) {
|
| + GET_PROC(TextureBarrier);
|
| + } else if (extensions.has("GL_NV_texture_barrier")) {
|
| + GET_PROC_SUFFIX(TextureBarrier, NV);
|
| + }
|
| GET_PROC(Uniform1f);
|
| GET_PROC(Uniform1i);
|
| GET_PROC(Uniform1fv);
|
| @@ -404,6 +409,10 @@ const GrGLInterface* GrGLAssembleGLESInterface(void* ctx, GrGLGetProc get) {
|
| GET_PROC_SUFFIX(TexStorage2D, EXT);
|
| }
|
|
|
| + if (extensions.has("GL_NV_texture_barrier")) {
|
| + GET_PROC_SUFFIX(TextureBarrier, NV);
|
| + }
|
| +
|
| GET_PROC_SUFFIX(DiscardFramebuffer, EXT);
|
| GET_PROC(Uniform1f);
|
| GET_PROC(Uniform1i);
|
|
|