diff options
author | Brian Salomon <bsalomon@google.com> | 2017-01-20 16:34:15 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-01-23 15:16:33 +0000 |
commit | 85f58b5ac975653f8cd26ad2869b7fc225b0f4d2 (patch) | |
tree | 7e6dd7bb5586f4d08961b672db9547d12edc3ecd | |
parent | 8f297c9994f864b1347d69c9b2c8795c7e8359b0 (diff) |
Look for GenerateMipMapEXT
Change-Id: I1ced904f0929653aa9bac09fee86607533e28be6
Reviewed-on: https://skia-review.googlesource.com/7359
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
-rw-r--r-- | src/gpu/gl/GrGLAssembleInterface.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gpu/gl/GrGLAssembleInterface.cpp b/src/gpu/gl/GrGLAssembleInterface.cpp index 7c51f4e806..1c10214382 100644 --- a/src/gpu/gl/GrGLAssembleInterface.cpp +++ b/src/gpu/gl/GrGLAssembleInterface.cpp @@ -158,7 +158,6 @@ const GrGLInterface* GrGLAssembleGLInterface(void* ctx, GrGLGetProc get) { GET_PROC(Flush); GET_PROC(FrontFace); GET_PROC(GenBuffers); - GET_PROC(GenerateMipmap); GET_PROC(GetBufferParameteriv); GET_PROC(GetError); GET_PROC(GetIntegerv); @@ -288,6 +287,7 @@ const GrGLInterface* GrGLAssembleGLInterface(void* ctx, GrGLGetProc get) { // First look for GL3.0 FBO or GL_ARB_framebuffer_object (same since // GL_ARB_framebuffer_object doesn't use ARB suffix.) if (glVer >= GR_GL_VER(3,0) || extensions.has("GL_ARB_framebuffer_object")) { + GET_PROC(GenerateMipmap); GET_PROC(GenFramebuffers); GET_PROC(GetFramebufferAttachmentParameteriv); GET_PROC(GetRenderbufferParameteriv); @@ -303,6 +303,7 @@ const GrGLInterface* GrGLAssembleGLInterface(void* ctx, GrGLGetProc get) { GET_PROC(RenderbufferStorageMultisample); GET_PROC(BlitFramebuffer); } else if (extensions.has("GL_EXT_framebuffer_object")) { + GET_PROC_SUFFIX(GenerateMipmap, EXT); GET_PROC_SUFFIX(GenFramebuffers, EXT); GET_PROC_SUFFIX(GetFramebufferAttachmentParameteriv, EXT); GET_PROC_SUFFIX(GetRenderbufferParameteriv, EXT); |