From 428f3ad637d6b11804de999d1eb77ef3dea3b1d2 Mon Sep 17 00:00:00 2001 From: Sergey Lipskiy Date: Fri, 28 Oct 2016 21:43:31 +0700 Subject: [PATCH] Add glTexStorage2D to GLFunctions --- src/common/GLFunctions.cpp | 4 ++++ src/common/GLFunctions.h | 2 ++ 2 files changed, 6 insertions(+) diff --git a/src/common/GLFunctions.cpp b/src/common/GLFunctions.cpp index 64c51470..0b5ff87b 100644 --- a/src/common/GLFunctions.cpp +++ b/src/common/GLFunctions.cpp @@ -114,6 +114,8 @@ PFNGLGETPROGRAMBINARYPROC glGetProgramBinary; PFNGLPROGRAMBINARYPROC glProgramBinary; PFNGLPROGRAMPARAMETERIPROC glProgramParameteri; +PFNGLTEXSTORAGE2DPROC glTexStorage2D; + void initGLFunctions() { #ifdef EGL @@ -217,4 +219,6 @@ void initGLFunctions() glGetProgramBinary = (PFNGLGETPROGRAMBINARYPROC)glGetProcAddress("glGetProgramBinary"); glProgramBinary = (PFNGLPROGRAMBINARYPROC)glGetProcAddress("glProgramBinary"); glProgramParameteri = (PFNGLPROGRAMPARAMETERIPROC)glGetProcAddress("glProgramParameteri"); + + glTexStorage2D = (PFNGLTEXSTORAGE2DPROC)glGetProcAddress("glTexStorage2D"); } diff --git a/src/common/GLFunctions.h b/src/common/GLFunctions.h index 71e32bef..5bad2199 100644 --- a/src/common/GLFunctions.h +++ b/src/common/GLFunctions.h @@ -104,4 +104,6 @@ extern PFNGLGETPROGRAMBINARYPROC glGetProgramBinary; extern PFNGLPROGRAMBINARYPROC glProgramBinary; extern PFNGLPROGRAMPARAMETERIPROC glProgramParameteri; +extern PFNGLTEXSTORAGE2DPROC glTexStorage2D; + #endif // GLFUNCTIONS_H