Dynamically resize grids if GL_OUT_OF_MEMORY is raised. Allows rain to fall on Intel HD 4000 with 512MB video memory.