Added cast to GLsizei to stop precision loss warning