mirror of
https://github.com/libretro/RetroArch
synced 2025-02-12 00:40:26 +00:00
Use HAVE_DYLIB more
This commit is contained in:
parent
63153620a7
commit
9e0c0865cd
@ -24,7 +24,7 @@
|
||||
#include "d3dcompiler_common.h"
|
||||
#include "../../verbosity.h"
|
||||
|
||||
#if defined(HAVE_DYNAMIC) && !defined(__WINRT__)
|
||||
#if defined(HAVE_DYLIB) && !defined(__WINRT__)
|
||||
#include <dynamic/dylib.h>
|
||||
|
||||
/* TODO/FIXME - static globals */
|
||||
|
@ -55,7 +55,7 @@
|
||||
|
||||
/* TODO/FIXME - static globals */
|
||||
static egl_ctx_data_t uwp_egl;
|
||||
#ifdef HAVE_DYNAMIC
|
||||
#ifdef HAVE_DYLIB
|
||||
static dylib_t dll_handle = NULL; /* Handle to libGLESv2.dll */
|
||||
#endif
|
||||
|
||||
@ -127,7 +127,7 @@ static void gfx_ctx_uwp_swap_interval(void *data, int interval)
|
||||
|
||||
static gfx_ctx_proc_t gfx_ctx_uwp_get_proc_address(const char* symbol)
|
||||
{
|
||||
#ifdef HAVE_DYNAMIC
|
||||
#ifdef HAVE_DYLIB
|
||||
return (gfx_ctx_proc_t)GetProcAddress((HINSTANCE)dll_handle, symbol);
|
||||
#else
|
||||
return NULL;
|
||||
@ -161,7 +161,7 @@ static void *gfx_ctx_uwp_init(void *video_driver)
|
||||
if (!uwp)
|
||||
return NULL;
|
||||
|
||||
#ifdef HAVE_DYNAMIC
|
||||
#ifdef HAVE_DYLIB
|
||||
dll_handle = dylib_load("libGLESv2.dll");
|
||||
#endif
|
||||
|
||||
@ -177,7 +177,7 @@ static void gfx_ctx_uwp_destroy(void *data)
|
||||
|
||||
egl_destroy(&uwp_egl);
|
||||
|
||||
#ifdef HAVE_DYNAMIC
|
||||
#ifdef HAVE_DYLIB
|
||||
dylib_close(dll_handle);
|
||||
#endif
|
||||
}
|
||||
|
@ -106,7 +106,7 @@ static unsigned win32_major = 0;
|
||||
static unsigned win32_minor = 0;
|
||||
static int win32_interval = 0;
|
||||
static enum gfx_ctx_api win32_api = GFX_CTX_NONE;
|
||||
#ifdef HAVE_DYNAMIC
|
||||
#ifdef HAVE_DYLIB
|
||||
static dylib_t dll_handle = NULL; /* Handle to OpenGL32.dll/libGLESv2.dll */
|
||||
#endif
|
||||
|
||||
@ -132,7 +132,7 @@ static gfx_ctx_proc_t gfx_ctx_wgl_get_proc_address(const char *symbol)
|
||||
break;
|
||||
}
|
||||
|
||||
#ifdef HAVE_DYNAMIC
|
||||
#ifdef HAVE_DYLIB
|
||||
return (gfx_ctx_proc_t)GetProcAddress((HINSTANCE)dll_handle, symbol);
|
||||
#else
|
||||
return NULL;
|
||||
@ -595,7 +595,7 @@ static void gfx_ctx_wgl_destroy(void *data)
|
||||
g_win32_flags &= ~WIN32_CMN_FLAG_RESTORE_DESKTOP;
|
||||
}
|
||||
|
||||
#ifdef HAVE_DYNAMIC
|
||||
#ifdef HAVE_DYLIB
|
||||
dylib_close(dll_handle);
|
||||
#endif
|
||||
|
||||
@ -624,7 +624,7 @@ static void *gfx_ctx_wgl_init(void *video_driver)
|
||||
if (win32_flags & WIN32_CMN_FLAG_INITED)
|
||||
gfx_ctx_wgl_destroy(NULL);
|
||||
|
||||
#ifdef HAVE_DYNAMIC
|
||||
#ifdef HAVE_DYLIB
|
||||
#ifdef HAVE_OPENGL
|
||||
dll_handle = dylib_load("OpenGL32.dll");
|
||||
#else
|
||||
|
Loading…
x
Reference in New Issue
Block a user