mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-20 16:05:19 +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
|
||||
*/
|
||||
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;
|
||||
} else {
|
||||
SDL_FreeSurface(surface_);
|
||||
|
Loading…
x
Reference in New Issue
Block a user