Enabled V sync and added editor update to scene systems

This commit is contained in:
Antoine Pilote
2023-07-06 22:41:43 -04:00
parent 5b8b9ea0c7
commit 263b4f7389
2 changed files with 4 additions and 2 deletions

View File

@@ -15,7 +15,7 @@ namespace Nuake
virtual void Update(Timestep ts) = 0;
virtual void FixedUpdate(Timestep ts) = 0;
virtual void EditorUpdate() {}
virtual void Exit() = 0;
};
}

View File

@@ -128,7 +128,9 @@ namespace Nuake {
stbi_image_free(images[0].pixels);
glfwMakeContextCurrent(m_Window);
glfwSwapInterval(0);
glfwSwapInterval(1);
Logger::Log((char*)glGetString(GL_VERSION));
if (glewInit() != GLEW_OK)