mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-06 11:28:15 +00:00
Fixed building with SDL_LEAN_AND_MEAN
Fixes https://github.com/libsdl-org/SDL/issues/9054
This commit is contained in:
@@ -998,6 +998,7 @@ static int SetDrawState(D3D_RenderData *data, const SDL_RenderCommand *cmd)
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if SDL_HAVE_YUV
|
||||||
if (shader != data->drawstate.shader) {
|
if (shader != data->drawstate.shader) {
|
||||||
const HRESULT result = IDirect3DDevice9_SetPixelShader(data->device, data->shaders[shader]);
|
const HRESULT result = IDirect3DDevice9_SetPixelShader(data->device, data->shaders[shader]);
|
||||||
if (FAILED(result)) {
|
if (FAILED(result)) {
|
||||||
@@ -1016,6 +1017,7 @@ static int SetDrawState(D3D_RenderData *data, const SDL_RenderCommand *cmd)
|
|||||||
}
|
}
|
||||||
data->drawstate.shader_params = shader_params;
|
data->drawstate.shader_params = shader_params;
|
||||||
}
|
}
|
||||||
|
#endif /* SDL_HAVE_YUV */
|
||||||
|
|
||||||
data->drawstate.texture = texture;
|
data->drawstate.texture = texture;
|
||||||
} else if (texture) {
|
} else if (texture) {
|
||||||
|
Reference in New Issue
Block a user