mirror of
https://github.com/SFML/SFML.git
synced 2024-11-28 22:31:09 +08:00
Fix broken OpenGL example
This commit is contained in:
parent
f6de7eca40
commit
7364d5b578
@ -282,8 +282,9 @@ int main()
|
||||
// Make the window the active window for OpenGL calls
|
||||
if (!window.setActive(true))
|
||||
{
|
||||
std::cerr << "Failed to set window to active" << std::endl;
|
||||
return EXIT_FAILURE;
|
||||
// On failure, try re-creating the window, as it is intentionally
|
||||
// closed when changing color space.
|
||||
continue;
|
||||
}
|
||||
|
||||
// Clear the depth buffer
|
||||
|
Loading…
Reference in New Issue
Block a user