mirror of https://github.com/mosra/magnum.git
Browse Source
For quite a while, setSwapInterval() was reporting that "swap interval was ignored by the driver". Since I used to have that behavior ages ago on a NVidia Optimus machine (where it was just *impossible* to have VSync, imagine that!!), I assumed it was a similar wart in Mesa and didn't bother looking into it. It turns out, however, that calling setSwapInterval(1) may result in SDL_GL_GetSwapInterval() returning -1 instead of 1, thus helpfully enabling late-swap behavior for me. Since -1 != -1, the code treated that the same as if SDL_GL_GetSwapInterval() returned 0 (which was the case with NV Optimus having broken VSync), but it's not an error in fact.pull/578/head
2 changed files with 8 additions and 2 deletions
Loading…
Reference in new issue