Skip to content

Commit

Permalink
Surface: restrict a workaround to SDL 2.0.6 only
Browse files Browse the repository at this point in the history
It was fixed in 2.0.7.
  • Loading branch information
Vultraz committed May 26, 2018
1 parent f2d84e5 commit 30247e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sdl/surface.cpp
Expand Up @@ -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_);
Expand Down

0 comments on commit 30247e9

Please sign in to comment.