Closed #5832: Fixed a bug of RenderTexture that it doesn't support depthStencilFormat in v2.x

Fixed a bug of RenderTexture that it doesn't support depthStencilFormat in v2.x