fixes for skybox. fix for crash when converting texture with resize