lucastle6969 / comp371

repository for comp371 final project Fall 2017 Concordia
0 stars 0 forks source link

Skybox: slight refactor, new VAO no longer allocated on each draw. #121

Closed benwiley4000 closed 6 years ago

benwiley4000 commented 6 years ago

The only really substantive thing I did here, besides delete a bunch of commented-out code, was make it so that we load the VAO for the skybox only once. The way it was, we were loading and allocating on the GPU a brand new VAO every time we drew. This could lead to running out of GPU memory, and make the program slower.