trigger postMainLoop in SDL_GL_SwapBuffers (=finishing rendering a frame)