Fixup build on Win32.
This commit is contained in:
parent
38a3c72a21
commit
8198927260
6
gfx/gl.c
6
gfx/gl.c
|
@ -129,7 +129,7 @@ static bool load_fbo_proc(void) { return true; }
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if (defined(HAVE_XML) || defined(HAVE_CG)) && defined(_WIN32)
|
#ifdef _WIN32
|
||||||
PFNGLCLIENTACTIVETEXTUREPROC pglClientActiveTexture = NULL;
|
PFNGLCLIENTACTIVETEXTUREPROC pglClientActiveTexture = NULL;
|
||||||
PFNGLACTIVETEXTUREPROC pglActiveTexture = NULL;
|
PFNGLACTIVETEXTUREPROC pglActiveTexture = NULL;
|
||||||
static inline bool load_gl_proc(void)
|
static inline bool load_gl_proc(void)
|
||||||
|
@ -1067,8 +1067,8 @@ static void *gl_init(const video_info_t *video, const input_driver_t **input, vo
|
||||||
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
|
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if (defined(HAVE_XML) || defined(HAVE_CG)) && defined(_WIN32)
|
#ifdef _WIN32
|
||||||
// Win32 GL lib doesn't have some functions needed for XML shaders.
|
// Win32 GL lib doesn't have some functions needed.
|
||||||
// Need to load dynamically :(
|
// Need to load dynamically :(
|
||||||
if (!load_gl_proc())
|
if (!load_gl_proc())
|
||||||
{
|
{
|
||||||
|
|
|
@ -211,7 +211,7 @@ typedef struct gl
|
||||||
} gl_t;
|
} gl_t;
|
||||||
|
|
||||||
// Windows ... <_<
|
// Windows ... <_<
|
||||||
#if (defined(HAVE_XML) || defined(HAVE_CG)) && defined(_WIN32)
|
#ifdef _WIN32
|
||||||
extern PFNGLCLIENTACTIVETEXTUREPROC pglClientActiveTexture;
|
extern PFNGLCLIENTACTIVETEXTUREPROC pglClientActiveTexture;
|
||||||
extern PFNGLACTIVETEXTUREPROC pglActiveTexture;
|
extern PFNGLACTIVETEXTUREPROC pglActiveTexture;
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Reference in New Issue