mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-20 12:39:31 +00:00
Surface: restrict a workaround to SDL 2.0.6 only
It was fixed in 2.0.7. (cherry-picked from commit 0f1029a93340be004254a539b173059f302222dd)
This commit is contained in:
parent
eebcdce40a
commit
86adea9afd
@ -29,7 +29,7 @@ void surface::free_surface()
|
|||||||
*
|
*
|
||||||
* - Jyrki, 2017-09-23
|
* - Jyrki, 2017-09-23
|
||||||
*/
|
*/
|
||||||
if(surface_->refcount > 1 && sdl_get_version() >= version_info(2, 0, 6)) {
|
if(surface_->refcount > 1 && sdl_get_version() == version_info(2, 0, 6)) {
|
||||||
--surface_->refcount;
|
--surface_->refcount;
|
||||||
} else {
|
} else {
|
||||||
SDL_FreeSurface(surface_);
|
SDL_FreeSurface(surface_);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user