diff --git a/gfx/gl.c b/gfx/gl.c index a85b9b6f01..529d742d6b 100644 --- a/gfx/gl.c +++ b/gfx/gl.c @@ -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()) { diff --git a/gfx/gl_common.h b/gfx/gl_common.h index 43f913186d..15e377dbfc 100644 --- a/gfx/gl_common.h +++ b/gfx/gl_common.h @@ -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