From 86adea9afdbea3e062ef39f4b71a5bb7c27ef4c2 Mon Sep 17 00:00:00 2001 From: Charles Dang Date: Sat, 26 May 2018 18:09:36 +1100 Subject: [PATCH] Surface: restrict a workaround to SDL 2.0.6 only It was fixed in 2.0.7. (cherry-picked from commit 0f1029a93340be004254a539b173059f302222dd) --- src/sdl/surface.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sdl/surface.cpp b/src/sdl/surface.cpp index 726b495edd6..87d27e5fdd2 100644 --- a/src/sdl/surface.cpp +++ b/src/sdl/surface.cpp @@ -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_);