SDL: Fixed building with SDL_LEAN_AND_MEAN

From 725c79f3ac00ea43ec32c47c5ea5ce2cb06ac07b Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Mon, 12 Feb 2024 19:34:10 -0800
Subject: [PATCH] Fixed building with SDL_LEAN_AND_MEAN

Fixes https://github.com/libsdl-org/SDL/issues/9054
---
 src/render/direct3d/SDL_render_d3d.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/render/direct3d/SDL_render_d3d.c b/src/render/direct3d/SDL_render_d3d.c
index 9d3e080c87fc..8dc00e9cf0f4 100644
--- a/src/render/direct3d/SDL_render_d3d.c
+++ b/src/render/direct3d/SDL_render_d3d.c
@@ -998,6 +998,7 @@ static int SetDrawState(D3D_RenderData *data, const SDL_RenderCommand *cmd)
             return -1;
         }
 
+#if SDL_HAVE_YUV
         if (shader != data->drawstate.shader) {
             const HRESULT result = IDirect3DDevice9_SetPixelShader(data->device, data->shaders[shader]);
             if (FAILED(result)) {
@@ -1016,6 +1017,7 @@ static int SetDrawState(D3D_RenderData *data, const SDL_RenderCommand *cmd)
             }
             data->drawstate.shader_params = shader_params;
         }
+#endif /* SDL_HAVE_YUV */
 
         data->drawstate.texture = texture;
     } else if (texture) {