mirror of
https://github.com/icculus/DirkSimple.git
synced 2024-06-02 03:07:42 -04:00
sdl: Don't fail to build on ancient SDL2 installs.
This should fix the build on GitHub Actions.
This commit is contained in:
parent
10732fa25c
commit
102edc718a
|
@ -268,7 +268,9 @@ void DirkSimple_drawsprite(DirkSimple_Sprite *sprite, int sx, int sy, int sw, in
|
|||
}
|
||||
sprite->platform_handle = texture;
|
||||
SDL_SetTextureBlendMode(texture, SDL_BLENDMODE_BLEND);
|
||||
#if SDL_VERSION_ATLEAST(2.0.12) /* GitHub Actions has an ancient SDL, apparently... */
|
||||
SDL_SetTextureScaleMode(texture, SDL_ScaleModeNearest);
|
||||
#endif
|
||||
SDL_UpdateTexture(texture, NULL, sprite->rgba, sprite->width * 4);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue