Fix glTextureStorage2D issue by scaling w/h. Fixes #5625
Clear m_sws_ctx when freeing it.

Oops.  May help #5781.