Checking for half_image_size[ x & y ] to be non-negative.
Checking for half_image_size[ x & y ] to be non-negative.

This make sure that (1x1) , (1 x X) and (X , 1) pixel images using sub-sampling will get correct half_image_size i.e NON-NEGATIVE.
fix : https://github.com/godotengine/godot/issues/42363

(cherry picked from commit ec6a4c92fe4817dd45bf0f7a5d6ad8853a16c6e3)

ex/godot,ex/godot,ex/godot,ex/godot,ex/godot,ex/godot,ex/godot,ex/godot