mirror of https://github.com/PCSX2/pcsx2.git
gsdx-ogl: TexParamami is provided in core
This commit is contained in:
parent
42b1f81b8e
commit
f3c0c1bb88
|
@ -86,7 +86,6 @@ PFNGLCLIENTWAITSYNCPROC gl_ClientWaitSync = NU
|
|||
PFNGLFLUSHMAPPEDBUFFERRANGEPROC gl_FlushMappedBufferRange = NULL;
|
||||
PFNGLBLENDEQUATIONSEPARATEPROC gl_BlendEquationSeparate = NULL;
|
||||
PFNGLBLENDFUNCSEPARATEPROC gl_BlendFuncSeparate = NULL;
|
||||
PFNGLTEXPARAMETERIPROC gl_TexParameteri = NULL;
|
||||
// GL4.0
|
||||
PFNGLUNIFORMSUBROUTINESUIVPROC gl_UniformSubroutinesuiv = NULL;
|
||||
// GL4.1
|
||||
|
@ -186,7 +185,7 @@ namespace Emulate_DSA {
|
|||
|
||||
void APIENTRY TextureParameteri (GLuint texture, GLenum pname, GLint param) {
|
||||
BindTextureUnit(7, texture);
|
||||
gl_TexParameteri(GL_TEXTURE_2D, pname, param);
|
||||
glTexParameteri(GL_TEXTURE_2D, pname, param);
|
||||
}
|
||||
|
||||
// Framebuffer entry point
|
||||
|
|
|
@ -205,12 +205,6 @@ typedef void (APIENTRYP PFNGLTEXTUREBARRIERPROC) (void);
|
|||
typedef void (APIENTRYP PFNGLGETTEXTUREIMAGEPROC) (GLuint texture, GLint level, GLenum format, GLenum type, GLsizei bufSize, void *pixels);
|
||||
#endif /* GL_VERSION_4_5 */
|
||||
|
||||
// only exist in glcorearb.h
|
||||
#ifndef PFNGLTEXPARAMETERIPROC
|
||||
typedef void (APIENTRYP PFNGLTEXPARAMETERIPROC) (GLenum target, GLenum pname, GLint param);
|
||||
#endif
|
||||
|
||||
|
||||
extern PFNGLACTIVETEXTUREPROC gl_ActiveTexture;
|
||||
extern PFNGLBLENDCOLORPROC gl_BlendColor;
|
||||
extern PFNGLATTACHSHADERPROC gl_AttachShader;
|
||||
|
@ -275,7 +269,6 @@ extern PFNGLCLIENTWAITSYNCPROC gl_ClientWaitSync;
|
|||
extern PFNGLFLUSHMAPPEDBUFFERRANGEPROC gl_FlushMappedBufferRange;
|
||||
extern PFNGLBLENDEQUATIONSEPARATEPROC gl_BlendEquationSeparate;
|
||||
extern PFNGLBLENDFUNCSEPARATEPROC gl_BlendFuncSeparate;
|
||||
extern PFNGLTEXPARAMETERIPROC gl_TexParameteri;
|
||||
// GL4.0
|
||||
extern PFNGLUNIFORMSUBROUTINESUIVPROC gl_UniformSubroutinesuiv;
|
||||
// GL4.1
|
||||
|
|
|
@ -79,7 +79,6 @@ void GSWndGL::PopulateGlFunction()
|
|||
*(void**)&(gl_DeleteSync) = GetProcAddress("glDeleteSync");
|
||||
*(void**)&(gl_ClientWaitSync) = GetProcAddress("glClientWaitSync");
|
||||
*(void**)&(gl_FlushMappedBufferRange) = GetProcAddress("glFlushMappedBufferRange");
|
||||
*(void**)&(gl_TexParameteri) = GetProcAddress("glTexParameteri");
|
||||
// GL4.0
|
||||
*(void**)&(gl_UniformSubroutinesuiv) = GetProcAddress("glUniformSubroutinesuiv", true);
|
||||
*(void**)&(gl_BlendEquationSeparateiARB) = GetProcAddress("glBlendEquationSeparateiARB", true);
|
||||
|
|
Loading…
Reference in New Issue