Fix potential cases where we define SDL_GPU_* as an undefined symbol
This commit is contained in:
@@ -310,11 +310,15 @@ typedef unsigned int uintptr_t;
|
|||||||
/* Enable Vulkan support */
|
/* Enable Vulkan support */
|
||||||
#define SDL_VIDEO_VULKAN 1
|
#define SDL_VIDEO_VULKAN 1
|
||||||
|
|
||||||
#define SDL_GPU_D3D11 HAVE_D3D11_H
|
#if !defined(SDL_GPU_D3D11) && defined(HAVE_D3D11_H)
|
||||||
|
#define SDL_GPU_D3D11 1
|
||||||
|
#endif
|
||||||
#if !defined(SDL_GPU_D3D12)
|
#if !defined(SDL_GPU_D3D12)
|
||||||
#define SDL_GPU_D3D12 1
|
#define SDL_GPU_D3D12 1
|
||||||
#endif
|
#endif
|
||||||
#define SDL_GPU_VULKAN SDL_VIDEO_VULKAN
|
#if !defined(SDL_GPU_VULKAN) && defined(SDL_VIDEO_VULKAN)
|
||||||
|
#define SDL_GPU_VULKAN 1
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef SDL_VIDEO_RENDER_VULKAN
|
#ifndef SDL_VIDEO_RENDER_VULKAN
|
||||||
#define SDL_VIDEO_RENDER_VULKAN 1
|
#define SDL_VIDEO_RENDER_VULKAN 1
|
||||||
|
|||||||
@@ -232,11 +232,16 @@
|
|||||||
/* Enable Vulkan support */
|
/* Enable Vulkan support */
|
||||||
#define SDL_VIDEO_VULKAN 1
|
#define SDL_VIDEO_VULKAN 1
|
||||||
|
|
||||||
#define SDL_GPU_D3D11 HAVE_D3D11_H
|
|
||||||
|
#if !defined(SDL_GPU_D3D11) && defined(HAVE_D3D11_H)
|
||||||
|
#define SDL_GPU_D3D11 1
|
||||||
|
#endif
|
||||||
#if !defined(SDL_GPU_D3D12)
|
#if !defined(SDL_GPU_D3D12)
|
||||||
#define SDL_GPU_D3D12 1
|
#define SDL_GPU_D3D12 1
|
||||||
#endif
|
#endif
|
||||||
#define SDL_GPU_VULKAN SDL_VIDEO_VULKAN
|
#if !defined(SDL_GPU_VULKAN) && defined(SDL_VIDEO_VULKAN)
|
||||||
|
#define SDL_GPU_VULKAN 1
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Enable system power support */
|
/* Enable system power support */
|
||||||
#define SDL_POWER_WINDOWS 1
|
#define SDL_POWER_WINDOWS 1
|
||||||
|
|||||||
Reference in New Issue
Block a user