Skip to content

Commit 4d9295e

Browse files
definabilityslouken
authored andcommitted
Fixed building with SDL_LEAN_AND_MEAN
Fixes #14151
1 parent 6d47d8d commit 4d9295e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/render/direct3d/SDL_render_d3d.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1059,8 +1059,10 @@ static bool SetupTextureState(D3D_RenderData *data, SDL_Texture *texture, SDL_Sc
10591059
} else {
10601060
*shader = SHADER_PALETTE_NEAREST;
10611061
}
1062+
#ifdef SDL_HAVE_YUV
10621063
} else if (texturedata->yuv) {
10631064
*shader = SHADER_YUV;
1065+
#endif // SDL_HAVE_YUV
10641066
}
10651067
*shader_params = texturedata->shader_params;
10661068

0 commit comments

Comments
 (0)