diff --git a/plugins/GSdx/GLLoader.cpp b/plugins/GSdx/GLLoader.cpp index 1aad46fb46..2e38d19310 100644 --- a/plugins/GSdx/GLLoader.cpp +++ b/plugins/GSdx/GLLoader.cpp @@ -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); diff --git a/plugins/GSdx/GLLoader.h b/plugins/GSdx/GLLoader.h index c835b0ceb1..4b8c7f771f 100644 --- a/plugins/GSdx/GLLoader.h +++ b/plugins/GSdx/GLLoader.h @@ -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;