Fixed whitespaces
Former-commit-id: 56787f5a0cf0093ad63b33a8b4746968215e2a11
This commit is contained in:
parent
cb007b48fd
commit
37c45153af
|
|
@ -176,35 +176,35 @@ void NzRenderWindow::Display()
|
||||||
|
|
||||||
void NzRenderWindow::EnableVerticalSync(bool enabled)
|
void NzRenderWindow::EnableVerticalSync(bool enabled)
|
||||||
{
|
{
|
||||||
if (m_context)
|
if (m_context)
|
||||||
{
|
{
|
||||||
#if defined(NAZARA_PLATFORM_WINDOWS)
|
#if defined(NAZARA_PLATFORM_WINDOWS)
|
||||||
if (!m_context->SetActive(true))
|
if (!m_context->SetActive(true))
|
||||||
{
|
{
|
||||||
NazaraError("Failed to activate context");
|
NazaraError("Failed to activate context");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (wglSwapInterval)
|
if (wglSwapInterval)
|
||||||
wglSwapInterval(enabled ? 1 : 0);
|
wglSwapInterval(enabled ? 1 : 0);
|
||||||
else
|
else
|
||||||
#elif defined(NAZARA_PLATFORM_LINUX)
|
#elif defined(NAZARA_PLATFORM_LINUX)
|
||||||
if (!m_context->SetActive(true))
|
if (!m_context->SetActive(true))
|
||||||
{
|
{
|
||||||
NazaraError("Failed to activate context");
|
NazaraError("Failed to activate context");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (glXSwapInterval)
|
if (glXSwapInterval)
|
||||||
glXSwapInterval(enabled ? 1 : 0);
|
glXSwapInterval(enabled ? 1 : 0);
|
||||||
else
|
else
|
||||||
#else
|
#else
|
||||||
#error Vertical Sync is not supported on this platform
|
#error Vertical Sync is not supported on this platform
|
||||||
#endif
|
#endif
|
||||||
NazaraError("Vertical Sync is not supported on this platform");
|
NazaraError("Vertical Sync is not supported on this platform");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
NazaraError("No context");
|
NazaraError("No context");
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned int NzRenderWindow::GetHeight() const
|
unsigned int NzRenderWindow::GetHeight() const
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue