gsdx-ogl: add function pointer for query object

This commit is contained in:
Gregory Hainaut 2016-03-04 21:42:17 +01:00
parent 5abacd3667
commit 7b8616ac7b
3 changed files with 30 additions and 0 deletions

View File

@ -88,6 +88,16 @@ PFNGLCLIENTWAITSYNCPROC glClientWaitSync = NUL
PFNGLFLUSHMAPPEDBUFFERRANGEPROC glFlushMappedBufferRange = NULL;
PFNGLBLENDEQUATIONSEPARATEPROC glBlendEquationSeparate = NULL;
PFNGLBLENDFUNCSEPARATEPROC glBlendFuncSeparate = NULL;
// Query object
PFNGLBEGINQUERYPROC glBeginQuery = NULL;
PFNGLENDQUERYPROC glEndQuery = NULL;
PFNGLGETQUERYIVPROC glGetQueryiv = NULL;
PFNGLGETQUERYOBJECTIVPROC glGetQueryObjectiv = NULL;
PFNGLGETQUERYOBJECTUIVPROC glGetQueryObjectuiv = NULL;
PFNGLQUERYCOUNTERPROC glQueryCounter = NULL;
PFNGLGETQUERYOBJECTI64VPROC glGetQueryObjecti64v = NULL;
PFNGLGETQUERYOBJECTUI64VPROC glGetQueryObjectui64v = NULL;
PFNGLGETINTEGER64VPROC glGetInteger64v = NULL;
// GL4.0
// GL4.1
PFNGLBINDPROGRAMPIPELINEPROC glBindProgramPipeline = NULL;

View File

@ -263,6 +263,16 @@ extern PFNGLCLIENTWAITSYNCPROC glClientWaitSync;
extern PFNGLFLUSHMAPPEDBUFFERRANGEPROC glFlushMappedBufferRange;
extern PFNGLBLENDEQUATIONSEPARATEPROC glBlendEquationSeparate;
extern PFNGLBLENDFUNCSEPARATEPROC glBlendFuncSeparate;
// Query object
extern PFNGLBEGINQUERYPROC glBeginQuery;
extern PFNGLENDQUERYPROC glEndQuery;
extern PFNGLGETQUERYIVPROC glGetQueryiv;
extern PFNGLGETQUERYOBJECTIVPROC glGetQueryObjectiv;
extern PFNGLGETQUERYOBJECTUIVPROC glGetQueryObjectuiv;
extern PFNGLQUERYCOUNTERPROC glQueryCounter;
extern PFNGLGETQUERYOBJECTI64VPROC glGetQueryObjecti64v;
extern PFNGLGETQUERYOBJECTUI64VPROC glGetQueryObjectui64v;
extern PFNGLGETINTEGER64VPROC glGetInteger64v;
// GL4.0
// GL4.1
extern PFNGLBINDPROGRAMPIPELINEPROC glBindProgramPipeline;

View File

@ -81,6 +81,16 @@ void GSWndGL::PopulateGlFunction()
*(void**)&(glDeleteSync) = GetProcAddress("glDeleteSync");
*(void**)&(glClientWaitSync) = GetProcAddress("glClientWaitSync");
*(void**)&(glFlushMappedBufferRange) = GetProcAddress("glFlushMappedBufferRange");
// Query object
*(void**)&(glBeginQuery) = GetProcAddress("glBeginQuery");
*(void**)&(glEndQuery) = GetProcAddress("glEndQuery");
*(void**)&(glGetQueryiv) = GetProcAddress("glGetQueryiv");
*(void**)&(glGetQueryObjectiv) = GetProcAddress("glGetQueryObjectiv");
*(void**)&(glGetQueryObjectuiv) = GetProcAddress("glGetQueryObjectuiv");
*(void**)&(glQueryCounter) = GetProcAddress("glQueryCounter");
*(void**)&(glGetQueryObjecti64v) = GetProcAddress("glGetQueryObjecti64v");
*(void**)&(glGetQueryObjectui64v) = GetProcAddress("glGetQueryObjectui64v");
*(void**)&(glGetInteger64v) = GetProcAddress("glGetInteger64v");
// GL4.0
*(void**)&(glBlendEquationSeparateiARB) = GetProcAddress("glBlendEquationSeparateiARB", true);
*(void**)&(glBlendFuncSeparateiARB) = GetProcAddress("glBlendFuncSeparateiARB", true);