mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-06-07 16:01:10 +00:00
Check the SDL_VIDEO_RENDER_??? macros with #if instead of #ifdef
Allows users to disable them by defining them as 0. Closes https://github.com/libsdl-org/SDL/issues/8996 (manual port of https://github.com/libsdl-org/SDL/pull/9063 to SDL3.0)
This commit is contained in:
parent
8ddddd36cd
commit
aae2d22852
37 changed files with 122 additions and 80 deletions
src/render/direct3d
|
@ -20,7 +20,7 @@
|
|||
*/
|
||||
#include "SDL_internal.h"
|
||||
|
||||
#if defined(SDL_VIDEO_RENDER_D3D) && !defined(SDL_RENDER_DISABLED)
|
||||
#if SDL_VIDEO_RENDER_D3D
|
||||
|
||||
#include "../../core/windows/SDL_windows.h"
|
||||
|
||||
|
@ -29,7 +29,7 @@
|
|||
#include "../../video/windows/SDL_windowsvideo.h"
|
||||
#include "../../video/SDL_pixels_c.h"
|
||||
|
||||
#ifdef SDL_VIDEO_RENDER_D3D
|
||||
#if SDL_VIDEO_RENDER_D3D
|
||||
#define D3D_DEBUG_INFO
|
||||
#include <d3d9.h>
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue