closed #3964, Use GL methods instead in function RenderTexture::newImage()