mirror of
https://github.com/SFML/SFML.git
synced 2025-02-18 06:18:01 +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
|
// 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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user