mirror of https://github.com/PCSX2/pcsx2.git
gsdx-ogl-wnd: gl.h doesn't provide same functions on linux and windows...
git-svn-id: http://pcsx2.googlecode.com/svn/branches/gsdx-ogl-wnd@5519 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
parent
58cc2ddd1f
commit
c4dfd0c7c5
|
@ -22,6 +22,12 @@
|
|||
#include "stdafx.h"
|
||||
#include "GLLoader.h"
|
||||
|
||||
// Those are provided on gl.h on linux...
|
||||
#ifdef _WINDOWS
|
||||
PFNGLACTIVETEXTUREPROC glActiveTexture = NULL;
|
||||
PFNGLBLENDCOLORPROC glBlendColor = NULL;
|
||||
#endif
|
||||
|
||||
PFNGLATTACHSHADERPROC glAttachShader = NULL;
|
||||
PFNGLBINDBUFFERPROC glBindBuffer = NULL;
|
||||
PFNGLBINDBUFFERBASEPROC glBindBufferBase = NULL;
|
||||
|
@ -108,6 +114,12 @@ namespace GLLoader {
|
|||
}
|
||||
|
||||
void init_gl_function() {
|
||||
// Those are provided on gl.h on linux...
|
||||
#ifdef _WINDOWS
|
||||
GL_LOADFN(glActiveTexture);
|
||||
GL_LOADFN(glBlendColor);
|
||||
#endif
|
||||
|
||||
GL_LOADFN(glAttachShader);
|
||||
GL_LOADFN(glBindBuffer);
|
||||
GL_LOADFN(glBindBufferBase);
|
||||
|
|
|
@ -35,6 +35,11 @@
|
|||
}
|
||||
#endif
|
||||
|
||||
// Those are provided on gl.h on linux...
|
||||
#ifdef _WINDOWS
|
||||
extern PFNGLACTIVETEXTUREPROC glActiveTexture;
|
||||
extern PFNGLBLENDCOLORPROC glBlendColor;
|
||||
#endif
|
||||
extern PFNGLATTACHSHADERPROC glAttachShader;
|
||||
extern PFNGLBINDBUFFERPROC glBindBuffer;
|
||||
extern PFNGLBINDBUFFERBASEPROC glBindBufferBase;
|
||||
|
|
Loading…
Reference in New Issue