closed #3964, Solve the bug of logic code in method Image::saveImageToPNG().
Merge branch 'develop' into issue3964
closed #3964, Use GL methods instead in function RenderTexture::newImage()
Merge pull request #5365 from natural-law/issue3964

closed #3964: Solve the bug of Image::saveImageToPNG().