Update eng_image_free function and check of references.
It would be better if effort was put on migrating to gl_generic anyway.
|970 ↗||(On Diff #9548)|
This completely change the behavior of pt_unref. Reference is an int. If we have an excess of unref for whatever reason, we would after that patch risk a bigger crash/problem. Testing if it is 0 to continue is defensive programing and I don't see why you need to change that,