add clear/swap at initialization to prevent linux screen buffer issue on debug

This commit is contained in:
2020-01-30 15:32:20 -05:00
parent f8e55db892
commit f8cd839c94

View File

@@ -63,6 +63,8 @@ int main(int argc, char *argv[]) {
glfwMakeContextCurrent(window);
gladLoadGLLoader((GLADloadproc) glfwGetProcAddress);
glfwSwapInterval(0);
glClear(GL_COLOR_BUFFER_BIT);
glfwSwapBuffers(window);
//endregion
std::cout << utilInfo();