Fix -Wundef warnings due to use of unguarded SDL_VIDEO_RENDER_D3D12

This commit is contained in:
Anonymous Maarten
2023-03-27 15:54:54 +02:00
parent 0abbeec741
commit 63fa1bae3e
9 changed files with 10 additions and 10 deletions

View File

@@ -20,7 +20,7 @@
*/
#include "SDL_internal.h"
#if SDL_VIDEO_RENDER_D3D12 && !SDL_RENDER_DISABLED
#if defined(SDL_VIDEO_RENDER_D3D12) && !SDL_RENDER_DISABLED
#define SDL_D3D12_NUM_BUFFERS 2
#define SDL_D3D12_NUM_VERTEX_BUFFERS 256
@@ -3050,7 +3050,7 @@ extern "C"
{
ID3D12Device *device = NULL;
#if SDL_VIDEO_RENDER_D3D12 && !SDL_RENDER_DISABLED
#if defined(SDL_VIDEO_RENDER_D3D12) && !SDL_RENDER_DISABLED
D3D12_RenderData *data = (D3D12_RenderData *)renderer->driverdata;
/* Make sure that this is a D3D renderer */