mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-03 00:18:28 +00:00
Build config flags are either defined or undefined, never 0
This is for consistency with CMake build configuration Also added SDL_VIDEO_RENDER_GPU to the non-CMake build configurations
This commit is contained in:
@@ -20,7 +20,10 @@
|
||||
*/
|
||||
#include "SDL_internal.h"
|
||||
|
||||
#if (SDL_VIDEO_RENDER_D3D || SDL_VIDEO_RENDER_D3D11 || SDL_VIDEO_RENDER_D3D12 || SDL_VIDEO_RENDER_VULKAN)
|
||||
#if defined(SDL_VIDEO_RENDER_D3D) || \
|
||||
defined(SDL_VIDEO_RENDER_D3D11) || \
|
||||
defined(SDL_VIDEO_RENDER_D3D12) || \
|
||||
defined(SDL_VIDEO_RENDER_VULKAN)
|
||||
|
||||
#include "SDL_d3dmath.h"
|
||||
|
||||
@@ -129,4 +132,4 @@ Float4X4 MatrixRotationZ(float r)
|
||||
return m;
|
||||
}
|
||||
|
||||
#endif // (SDL_VIDEO_RENDER_D3D || SDL_VIDEO_RENDER_D3D11 || SDL_VIDEO_RENDER_D3D12)
|
||||
#endif // SDL_VIDEO_RENDER_D3D || SDL_VIDEO_RENDER_D3D11 || SDL_VIDEO_RENDER_D3D12 || SDL_VIDEO_RENDER_VULKAN
|
||||
|
Reference in New Issue
Block a user