loadso: library handles are now SDL_SharedObject* instead of void*.

Improved the SDL_loadso.h documentation a little, too.

Fixes #11009.
This commit is contained in:
Ryan C. Gordon
2024-10-01 11:11:40 -04:00
parent f351395c46
commit 0b5e01a305
38 changed files with 102 additions and 73 deletions

View File

@@ -737,9 +737,9 @@ struct D3D11Renderer
IDXGIInfoQueue *dxgiInfoQueue;
#endif
void *d3d11_dll;
void *dxgi_dll;
void *dxgidebug_dll;
SDL_SharedObject *d3d11_dll;
SDL_SharedObject *dxgi_dll;
SDL_SharedObject *dxgidebug_dll;
Uint8 debugMode;
BOOL supportsTearing;
@@ -5886,7 +5886,8 @@ static bool D3D11_SupportsTextureFormat(
static bool D3D11_PrepareDriver(SDL_VideoDevice *this)
{
void *d3d11_dll, *dxgi_dll;
SDL_SharedObject *d3d11_dll;
SDL_SharedObject *dxgi_dll;
PFN_D3D11_CREATE_DEVICE D3D11CreateDeviceFunc;
D3D_FEATURE_LEVEL levels[] = { D3D_FEATURE_LEVEL_11_1 };
PFN_CREATE_DXGI_FACTORY1 CreateDxgiFactoryFunc;

View File

@@ -576,8 +576,8 @@ struct D3D12Renderer
IDXGIInfoQueue *dxgiInfoQueue;
#endif
IDXGIAdapter1 *adapter;
void *dxgi_dll;
void *dxgidebug_dll;
SDL_SharedObject *dxgi_dll;
SDL_SharedObject *dxgidebug_dll;
#endif
ID3D12Debug *d3d12Debug;
bool supportsTearing;
@@ -7762,8 +7762,8 @@ static bool D3D12_PrepareDriver(SDL_VideoDevice *_this)
#if defined(SDL_PLATFORM_XBOXONE) || defined(SDL_PLATFORM_XBOXSERIES)
return true;
#else
void *d3d12Dll;
void *dxgiDll;
SDL_SharedObject *d3d12Dll;
SDL_SharedObject *dxgiDll;
PFN_D3D12_CREATE_DEVICE D3D12CreateDeviceFunc;
PFN_CREATE_DXGI_FACTORY1 CreateDXGIFactoryFunc;
HRESULT res;