From f71eb171cfe0b4572e07d0a9c0aa3f27273bd7cb Mon Sep 17 00:00:00 2001 From: Gregory Hainaut Date: Wed, 22 Apr 2015 20:38:22 +0200 Subject: [PATCH] gsdx-ogl: add glTextureBarrier function pointer Could be useful --- plugins/GSdx/GLLoader.cpp | 1 + plugins/GSdx/GLLoader.h | 1 + plugins/GSdx/GSWnd.cpp | 1 + 3 files changed, 3 insertions(+) diff --git a/plugins/GSdx/GLLoader.cpp b/plugins/GSdx/GLLoader.cpp index a2abe2828e..425e1a6bf5 100644 --- a/plugins/GSdx/GLLoader.cpp +++ b/plugins/GSdx/GLLoader.cpp @@ -142,6 +142,7 @@ PFNGLCREATESAMPLERSPROC gl_CreateSamplers = NU PFNGLCREATEPROGRAMPIPELINESPROC gl_CreateProgramPipelines = NULL; PFNGLCLIPCONTROLPROC gl_ClipControl = NULL; +PFNGLTEXTUREBARRIERPROC gl_TextureBarrier = NULL; #endif diff --git a/plugins/GSdx/GLLoader.h b/plugins/GSdx/GLLoader.h index 3c425796fb..670c324eea 100644 --- a/plugins/GSdx/GLLoader.h +++ b/plugins/GSdx/GLLoader.h @@ -330,6 +330,7 @@ extern PFNGLCREATESAMPLERSPROC gl_CreateSamplers; extern PFNGLCREATEPROGRAMPIPELINESPROC gl_CreateProgramPipelines; extern PFNGLCLIPCONTROLPROC gl_ClipControl; +extern PFNGLTEXTUREBARRIERPROC gl_TextureBarrier; #else #define gl_ActiveTexture glActiveTexture diff --git a/plugins/GSdx/GSWnd.cpp b/plugins/GSdx/GSWnd.cpp index 0a6bffb837..fbad1357a9 100644 --- a/plugins/GSdx/GSWnd.cpp +++ b/plugins/GSdx/GSWnd.cpp @@ -145,6 +145,7 @@ void GSWndGL::PopulateGlFunction() *(void**)&(gl_CreateProgramPipelines) = GetProcAddress("glCreateProgramPipelines", true); *(void**)&(gl_ClipControl) = GetProcAddress("glClipControl", true); + *(void**)&(gl_TextureBarrier) = GetProcAddress("glTextureBarrier", true); #endif }