From 7aaf36d24d470d2a29e41256fbc73f41be969fc7 Mon Sep 17 00:00:00 2001 From: Gregory Hainaut Date: Thu, 7 Apr 2016 23:29:03 +0200 Subject: [PATCH] gsdx ogl: add function pointer for framebuffer no attachment extension Could be useful in the future --- 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 79b43a5c0f..7d50f0ed68 100644 --- a/plugins/GSdx/GLLoader.cpp +++ b/plugins/GSdx/GLLoader.cpp @@ -133,6 +133,7 @@ PFNGLCLEARNAMEDFRAMEBUFFERUIVPROC glClearNamedFramebufferuiv = NUL PFNGLNAMEDFRAMEBUFFERTEXTUREPROC glNamedFramebufferTexture = NULL; PFNGLNAMEDFRAMEBUFFERDRAWBUFFERSPROC glNamedFramebufferDrawBuffers = NULL; PFNGLNAMEDFRAMEBUFFERREADBUFFERPROC glNamedFramebufferReadBuffer = NULL; +PFNGLNAMEDFRAMEBUFFERPARAMETERIPROC glNamedFramebufferParameteri = NULL; PFNGLCHECKNAMEDFRAMEBUFFERSTATUSPROC glCheckNamedFramebufferStatus = NULL; PFNGLCREATEBUFFERSPROC glCreateBuffers = NULL; diff --git a/plugins/GSdx/GLLoader.h b/plugins/GSdx/GLLoader.h index adb49a5290..bf9977974a 100644 --- a/plugins/GSdx/GLLoader.h +++ b/plugins/GSdx/GLLoader.h @@ -308,6 +308,7 @@ extern PFNGLCLEARNAMEDFRAMEBUFFERUIVPROC glClearNamedFramebufferuiv; extern PFNGLNAMEDFRAMEBUFFERTEXTUREPROC glNamedFramebufferTexture; extern PFNGLNAMEDFRAMEBUFFERDRAWBUFFERSPROC glNamedFramebufferDrawBuffers; extern PFNGLNAMEDFRAMEBUFFERREADBUFFERPROC glNamedFramebufferReadBuffer; +extern PFNGLNAMEDFRAMEBUFFERPARAMETERIPROC glNamedFramebufferParameteri; extern PFNGLCHECKNAMEDFRAMEBUFFERSTATUSPROC glCheckNamedFramebufferStatus; extern PFNGLCREATEBUFFERSPROC glCreateBuffers; diff --git a/plugins/GSdx/GSWnd.cpp b/plugins/GSdx/GSWnd.cpp index 749df02ed8..065ba73fde 100644 --- a/plugins/GSdx/GSWnd.cpp +++ b/plugins/GSdx/GSWnd.cpp @@ -142,6 +142,7 @@ void GSWndGL::PopulateGlFunction() GL_EXT_LOAD(glNamedFramebufferTexture); GL_EXT_LOAD(glNamedFramebufferDrawBuffers); GL_EXT_LOAD(glNamedFramebufferReadBuffer); + GL_EXT_LOAD_OPT(glNamedFramebufferParameteri); GL_EXT_LOAD(glCheckNamedFramebufferStatus); GL_EXT_LOAD(glCreateBuffers);