Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/common/application.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,8 @@ int our::Application::run(int run_for_frames) {

gladLoadGL(glfwGetProcAddress); // Load the OpenGL functions from the driver

glfwSwapInterval(0); // Disable V-Sync

// Print information about the OpenGL context
std::cout << "VENDOR : " << glGetString(GL_VENDOR) << std::endl;
std::cout << "RENDERER : " << glGetString(GL_RENDERER) << std::endl;
Expand All @@ -245,6 +247,9 @@ int our::Application::run(int run_for_frames) {
// This will make sure that OpenGL and the main thread are synchronized such that message callback is called as soon
// as the command causing it is called. This is useful for debugging but slows down the code execution.
glEnable(GL_DEBUG_OUTPUT_SYNCHRONOUS);

// Disable ALL messages with severity of "notification"
glDebugMessageControl(GL_DONT_CARE, GL_DONT_CARE, GL_DEBUG_SEVERITY_NOTIFICATION, 0, nullptr, GL_FALSE);
#endif

setupCallbacks();
Expand Down