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:
gregory.hainaut 2013-01-17 15:24:55 +00:00
parent 58cc2ddd1f
commit c4dfd0c7c5
2 changed files with 17 additions and 0 deletions

View File

@ -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);

View File

@ -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;