Solves WebGL resize issue