Overload
Overload copied to clipboard
Duplicated declaration of samples amount and call to glfwWindowHint
Description We declare the amount of subsamples per screen coordinate in our Device and Window Settings classes. We call glfwWindowHint for set the samples amount two times.
Solution
We need to test the result of a unique call to glfwWindowHint(GLFW_SAMPLES, settings.samples); and determine wich class will set the samples.
glfwWindowHint provides a hint for the next created window, so in this case, the Window has the last word. It might make sense to put most (all?) of the DeviceSettings into WindowSettings.