testing: adding glFlush() each frame for performance testing

master
Nyx (Neal Orman) 2011-01-07 18:24:35 -05:00
parent f71228bf90
commit 8fae5d49bf
3 changed files with 5 additions and 0 deletions

View File

@ -1273,6 +1273,7 @@ BOOL LLWindowMacOSX::setSize(const LLCoordScreen size)
void LLWindowMacOSX::swapBuffers()
{
glFlush();
aglSwapBuffers(mContext);
}

View File

@ -984,7 +984,10 @@ BOOL LLWindowSDL::setSize(const LLCoordScreen size)
void LLWindowSDL::swapBuffers()
{
if (mWindow)
{
glFlush();
SDL_GL_SwapBuffers();
}
}
U32 LLWindowSDL::getFSAASamples()

View File

@ -2858,6 +2858,7 @@ BOOL LLWindowWin32::resetDisplayResolution()
void LLWindowWin32::swapBuffers()
{
glFlush();
SwapBuffers(mhDC);
}