Fix OpenGL VSync
This commit is contained in:
parent
4138702336
commit
aacf885b48
|
@ -127,12 +127,7 @@ bool cInterfaceWGL::Create(void *&window_handle)
|
||||||
|
|
||||||
bool cInterfaceWGL::MakeCurrent()
|
bool cInterfaceWGL::MakeCurrent()
|
||||||
{
|
{
|
||||||
return wglMakeCurrent(hDC, hRC) ? true : false;
|
bool success = wglMakeCurrent(hDC, hRC) ? true : false;
|
||||||
}
|
|
||||||
|
|
||||||
bool cInterfaceWGL::ClearCurrent()
|
|
||||||
{
|
|
||||||
bool success = wglMakeCurrent(hDC, nullptr) ? true : false;
|
|
||||||
if (success)
|
if (success)
|
||||||
{
|
{
|
||||||
// Grab the swap interval function pointer
|
// Grab the swap interval function pointer
|
||||||
|
@ -141,6 +136,11 @@ bool cInterfaceWGL::ClearCurrent()
|
||||||
return success;
|
return success;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool cInterfaceWGL::ClearCurrent()
|
||||||
|
{
|
||||||
|
return wglMakeCurrent(hDC, nullptr) ? true : false;
|
||||||
|
}
|
||||||
|
|
||||||
// Update window width, size and etc. Called from Render.cpp
|
// Update window width, size and etc. Called from Render.cpp
|
||||||
void cInterfaceWGL::Update()
|
void cInterfaceWGL::Update()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue