Fix broken OpenGL example

This commit is contained in:
Vittorio Romeo 2021-12-21 19:48:27 +01:00 committed by Lukas Dürrenberger
parent f6de7eca40
commit 7364d5b578

View File

@ -282,8 +282,9 @@ int main()
// Make the window the active window for OpenGL calls // Make the window the active window for OpenGL calls
if (!window.setActive(true)) if (!window.setActive(true))
{ {
std::cerr << "Failed to set window to active" << std::endl; // On failure, try re-creating the window, as it is intentionally
return EXIT_FAILURE; // closed when changing color space.
continue;
} }
// Clear the depth buffer // Clear the depth buffer