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:
Charles Dang 2018-05-26 18:09:36 +11:00
parent eebcdce40a
commit 86adea9afd

View File

@ -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_);