mirror of https://github.com/PCSX2/pcsx2.git
gsdx ogl: revert the removal of single shader compilation function pointer
(It doesn't mean I will drop SSO but that I will do some tests one day)
This commit is contained in:
parent
5d49a6b685
commit
538bb418ce
|
@ -81,6 +81,15 @@ PFNGLCLIENTWAITSYNCPROC glClientWaitSync = NUL
|
|||
PFNGLFLUSHMAPPEDBUFFERRANGEPROC glFlushMappedBufferRange = NULL;
|
||||
PFNGLBLENDEQUATIONSEPARATEPROC glBlendEquationSeparate = NULL;
|
||||
PFNGLBLENDFUNCSEPARATEPROC glBlendFuncSeparate = NULL;
|
||||
// Shader compilation (Broken driver)
|
||||
PFNGLCOMPILESHADERPROC glCompileShader = NULL;
|
||||
PFNGLCREATEPROGRAMPROC glCreateProgram = NULL;
|
||||
PFNGLCREATESHADERPROC glCreateShader = NULL;
|
||||
PFNGLDELETESHADERPROC glDeleteShader = NULL;
|
||||
PFNGLLINKPROGRAMPROC glLinkProgram = NULL;
|
||||
PFNGLUSEPROGRAMPROC glUseProgram = NULL;
|
||||
PFNGLGETSHADERINFOLOGPROC glGetShaderInfoLog = NULL;
|
||||
PFNGLPROGRAMUNIFORM1IPROC glProgramUniform1i = NULL;
|
||||
// Query object
|
||||
PFNGLBEGINQUERYPROC glBeginQuery = NULL;
|
||||
PFNGLENDQUERYPROC glEndQuery = NULL;
|
||||
|
|
|
@ -40,13 +40,6 @@
|
|||
#define APIENTRYP APIENTRY *
|
||||
#endif
|
||||
|
||||
// Mesa glext.h < 20150122 uses GLsizei for BUFFER*PROCs
|
||||
#if GL_GLEXT_VERSION < 20150122
|
||||
typedef GLsizei buffer_proc_t;
|
||||
#else
|
||||
typedef GLsizeiptr buffer_proc_t;
|
||||
#endif
|
||||
|
||||
// Allow compilation with older mesa
|
||||
#ifndef GL_VERSION_4_3
|
||||
#define GL_VERSION_4_3 1
|
||||
|
@ -256,6 +249,15 @@ extern PFNGLCLIENTWAITSYNCPROC glClientWaitSync;
|
|||
extern PFNGLFLUSHMAPPEDBUFFERRANGEPROC glFlushMappedBufferRange;
|
||||
extern PFNGLBLENDEQUATIONSEPARATEPROC glBlendEquationSeparate;
|
||||
extern PFNGLBLENDFUNCSEPARATEPROC glBlendFuncSeparate;
|
||||
// Shader compilation (Broken driver)
|
||||
extern PFNGLCOMPILESHADERPROC glCompileShader;
|
||||
extern PFNGLCREATEPROGRAMPROC glCreateProgram;
|
||||
extern PFNGLCREATESHADERPROC glCreateShader;
|
||||
extern PFNGLDELETESHADERPROC glDeleteShader;
|
||||
extern PFNGLLINKPROGRAMPROC glLinkProgram;
|
||||
extern PFNGLUSEPROGRAMPROC glUseProgram;
|
||||
extern PFNGLGETSHADERINFOLOGPROC glGetShaderInfoLog;
|
||||
extern PFNGLPROGRAMUNIFORM1IPROC glProgramUniform1i;
|
||||
// Query object
|
||||
extern PFNGLBEGINQUERYPROC glBeginQuery;
|
||||
extern PFNGLENDQUERYPROC glEndQuery;
|
||||
|
|
|
@ -109,8 +109,15 @@ void GSWndGL::PopulateGlFunction()
|
|||
GL_EXT_LOAD_OPT(glViewportIndexedfv);
|
||||
GL_EXT_LOAD_OPT(glScissorIndexed);
|
||||
GL_EXT_LOAD_OPT(glScissorIndexedv);
|
||||
// NO GL4.1
|
||||
// NO GL4.1 (or broken driver...)
|
||||
GL_EXT_LOAD(glDeleteProgram);
|
||||
GL_EXT_LOAD(glDeleteShader);
|
||||
GL_EXT_LOAD(glCompileShader);
|
||||
GL_EXT_LOAD(glCreateProgram);
|
||||
GL_EXT_LOAD(glCreateShader);
|
||||
GL_EXT_LOAD(glUseProgram);
|
||||
GL_EXT_LOAD(glGetShaderInfoLog);
|
||||
GL_EXT_LOAD(glLinkProgram);
|
||||
// GL4.2
|
||||
GL_EXT_LOAD_OPT(glBindImageTexture);
|
||||
GL_EXT_LOAD_OPT(glMemoryBarrier);
|
||||
|
|
Loading…
Reference in New Issue