Fixup build on Win32.

This commit is contained in:
Themaister 2012-08-16 10:09:44 +02:00
parent 38a3c72a21
commit 8198927260
2 changed files with 4 additions and 4 deletions

View File

@ -129,7 +129,7 @@ static bool load_fbo_proc(void) { return true; }
#endif
#endif
#if (defined(HAVE_XML) || defined(HAVE_CG)) && defined(_WIN32)
#ifdef _WIN32
PFNGLCLIENTACTIVETEXTUREPROC pglClientActiveTexture = NULL;
PFNGLACTIVETEXTUREPROC pglActiveTexture = NULL;
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);
#endif
#if (defined(HAVE_XML) || defined(HAVE_CG)) && defined(_WIN32)
// Win32 GL lib doesn't have some functions needed for XML shaders.
#ifdef _WIN32
// Win32 GL lib doesn't have some functions needed.
// Need to load dynamically :(
if (!load_gl_proc())
{

View File

@ -211,7 +211,7 @@ typedef struct gl
} gl_t;
// Windows ... <_<
#if (defined(HAVE_XML) || defined(HAVE_CG)) && defined(_WIN32)
#ifdef _WIN32
extern PFNGLCLIENTACTIVETEXTUREPROC pglClientActiveTexture;
extern PFNGLACTIVETEXTUREPROC pglActiveTexture;
#else