Fixed building with SDL_LEAN_AND_MEAN

Fixes https://github.com/libsdl-org/SDL/issues/9054
main
Sam Lantinga 2024-02-12 19:34:10 -08:00
parent 734d6fa1f3
commit 725c79f3ac
1 changed files with 2 additions and 0 deletions

View File

@ -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) {