Surface: restrict a workaround to SDL 2.0.6 only

It was fixed in 2.0.7.
This commit is contained in:
Charles Dang 2018-05-26 18:09:36 +11:00
parent f2d84e5cc8
commit 30247e93cb

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