mirror of https://github.com/PCSX2/pcsx2.git
gsdx ogl: rely on DSA API
This commit is contained in:
parent
fb97de7f79
commit
d533c393b2
|
@ -54,7 +54,6 @@ PFNGLFRAMEBUFFERRENDERBUFFERPROC glFramebufferRenderbuffer = NUL
|
|||
PFNGLFRAMEBUFFERTEXTURE2DPROC glFramebufferTexture2D = NULL;
|
||||
PFNGLGENBUFFERSPROC glGenBuffers = NULL;
|
||||
PFNGLGENFRAMEBUFFERSPROC glGenFramebuffers = NULL;
|
||||
PFNGLGENSAMPLERSPROC glGenSamplers = NULL;
|
||||
PFNGLGENVERTEXARRAYSPROC glGenVertexArrays = NULL;
|
||||
PFNGLGETBUFFERPARAMETERIVPROC glGetBufferParameteriv = NULL;
|
||||
PFNGLGETDEBUGMESSAGELOGARBPROC glGetDebugMessageLogARB = NULL;
|
||||
|
@ -95,7 +94,6 @@ PFNGLGETINTEGER64VPROC glGetInteger64v = NUL
|
|||
// GL4.0
|
||||
// GL4.1
|
||||
PFNGLBINDPROGRAMPIPELINEPROC glBindProgramPipeline = NULL;
|
||||
PFNGLGENPROGRAMPIPELINESPROC glGenProgramPipelines = NULL;
|
||||
PFNGLDELETEPROGRAMPIPELINESPROC glDeleteProgramPipelines = NULL;
|
||||
PFNGLGETPROGRAMPIPELINEIVPROC glGetProgramPipelineiv = NULL;
|
||||
PFNGLVALIDATEPROGRAMPIPELINEPROC glValidateProgramPipeline = NULL;
|
||||
|
|
|
@ -229,7 +229,6 @@ extern PFNGLFRAMEBUFFERRENDERBUFFERPROC glFramebufferRenderbuffer;
|
|||
extern PFNGLFRAMEBUFFERTEXTURE2DPROC glFramebufferTexture2D;
|
||||
extern PFNGLGENBUFFERSPROC glGenBuffers;
|
||||
extern PFNGLGENFRAMEBUFFERSPROC glGenFramebuffers;
|
||||
extern PFNGLGENSAMPLERSPROC glGenSamplers;
|
||||
extern PFNGLGENVERTEXARRAYSPROC glGenVertexArrays;
|
||||
extern PFNGLGETBUFFERPARAMETERIVPROC glGetBufferParameteriv;
|
||||
extern PFNGLGETDEBUGMESSAGELOGARBPROC glGetDebugMessageLogARB;
|
||||
|
@ -271,7 +270,6 @@ extern PFNGLGETINTEGER64VPROC glGetInteger64v;
|
|||
// GL4.1
|
||||
extern PFNGLBINDPROGRAMPIPELINEPROC glBindProgramPipeline;
|
||||
extern PFNGLDELETEPROGRAMPIPELINESPROC glDeleteProgramPipelines;
|
||||
extern PFNGLGENPROGRAMPIPELINESPROC glGenProgramPipelines;
|
||||
extern PFNGLGETPROGRAMPIPELINEIVPROC glGetProgramPipelineiv;
|
||||
extern PFNGLVALIDATEPROGRAMPIPELINEPROC glValidateProgramPipeline;
|
||||
extern PFNGLGETPROGRAMPIPELINEINFOLOGPROC glGetProgramPipelineInfoLog;
|
||||
|
|
|
@ -619,7 +619,7 @@ GLuint GSDeviceOGL::CreateSampler(bool bilinear, bool tau, bool tav, bool aniso)
|
|||
GL_PUSH("Create Sampler");
|
||||
|
||||
GLuint sampler;
|
||||
glGenSamplers(1, &sampler);
|
||||
glCreateSamplers(1, &sampler);
|
||||
if (bilinear) {
|
||||
glSamplerParameteri(sampler, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
|
||||
glSamplerParameteri(sampler, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
|
||||
|
|
|
@ -28,7 +28,7 @@ GSShaderOGL::GSShaderOGL(bool debug) :
|
|||
m_debug_shader(debug)
|
||||
{
|
||||
m_single_prog.clear();
|
||||
glGenProgramPipelines(1, &m_pipeline);
|
||||
glCreateProgramPipelines(1, &m_pipeline);
|
||||
glBindProgramPipeline(m_pipeline);
|
||||
}
|
||||
|
||||
|
|
|
@ -60,7 +60,6 @@ void GSWndGL::PopulateGlFunction()
|
|||
GL_EXT_LOAD(glFramebufferTexture2D);
|
||||
GL_EXT_LOAD(glGenBuffers);
|
||||
GL_EXT_LOAD(glGenFramebuffers);
|
||||
GL_EXT_LOAD(glGenSamplers);
|
||||
GL_EXT_LOAD(glGenVertexArrays);
|
||||
GL_EXT_LOAD(glGetBufferParameteriv);
|
||||
GL_EXT_LOAD(glGetDebugMessageLogARB);
|
||||
|
@ -102,7 +101,6 @@ void GSWndGL::PopulateGlFunction()
|
|||
GL_EXT_LOAD(glCreateShaderProgramv);
|
||||
GL_EXT_LOAD(glBindProgramPipeline);
|
||||
GL_EXT_LOAD(glDeleteProgramPipelines);
|
||||
GL_EXT_LOAD(glGenProgramPipelines);
|
||||
GL_EXT_LOAD(glGetProgramPipelineiv);
|
||||
GL_EXT_LOAD(glGetProgramPipelineInfoLog);
|
||||
GL_EXT_LOAD(glValidateProgramPipeline);
|
||||
|
|
Loading…
Reference in New Issue