Commit 33c4c786 authored by Alexander Maximilian Nilles's avatar Alexander Maximilian Nilles
Browse files

Add gl dbg callback in debug builds

parent 258db839
......@@ -12,7 +12,11 @@ std::shared_ptr<dino::Window> mainWindow;
int main()
{
int windowWidth = 1280, windowHeight = 720;
#ifdef NDEBUG
dino::Window::Hints hints = {{GLFW_SAMPLES, 8}, {GLFW_CONTEXT_VERSION_MINOR, 3}};
#else
dino::Window::Hints hints = {{GLFW_SAMPLES, 8}, {GLFW_CONTEXT_VERSION_MINOR, 3}, {GLFW_OPENGL_DEBUG_CONTEXT, true}};
#endif
mainWindow = std::make_shared<dino::Window>(
windowWidth, windowHeight, "Example 05: Main Window", hints);
glfwMakeContextCurrent(*mainWindow);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment