Surface: restrict a workaround to SDL 2.0.6 only
It was fixed in 2.0.7.
This commit is contained in:
parent
ff2c729991
commit
0f1029a933
1 changed files with 1 additions and 1 deletions
|
@ -28,7 +28,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…
Add table
Reference in a new issue