From 37c45153afbb013e7f4414c92063af45ad9378f0 Mon Sep 17 00:00:00 2001 From: Lynix Date: Sat, 19 Oct 2013 18:28:15 +0200 Subject: [PATCH] Fixed whitespaces Former-commit-id: 56787f5a0cf0093ad63b33a8b4746968215e2a11 --- src/Nazara/Renderer/RenderWindow.cpp | 36 ++++++++++++++-------------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/src/Nazara/Renderer/RenderWindow.cpp b/src/Nazara/Renderer/RenderWindow.cpp index c76c356ac..fb3ba6fd5 100644 --- a/src/Nazara/Renderer/RenderWindow.cpp +++ b/src/Nazara/Renderer/RenderWindow.cpp @@ -176,35 +176,35 @@ void NzRenderWindow::Display() void NzRenderWindow::EnableVerticalSync(bool enabled) { - if (m_context) - { + if (m_context) + { #if defined(NAZARA_PLATFORM_WINDOWS) - if (!m_context->SetActive(true)) + if (!m_context->SetActive(true)) { NazaraError("Failed to activate context"); return; } - if (wglSwapInterval) - wglSwapInterval(enabled ? 1 : 0); - else + if (wglSwapInterval) + wglSwapInterval(enabled ? 1 : 0); + else #elif defined(NAZARA_PLATFORM_LINUX) - if (!m_context->SetActive(true)) - { - NazaraError("Failed to activate context"); - return; - } + if (!m_context->SetActive(true)) + { + NazaraError("Failed to activate context"); + return; + } - if (glXSwapInterval) - glXSwapInterval(enabled ? 1 : 0); - else + if (glXSwapInterval) + glXSwapInterval(enabled ? 1 : 0); + else #else #error Vertical Sync is not supported on this platform #endif - NazaraError("Vertical Sync is not supported on this platform"); - } - else - NazaraError("No context"); + NazaraError("Vertical Sync is not supported on this platform"); + } + else + NazaraError("No context"); } unsigned int NzRenderWindow::GetHeight() const