sdl2_frt/src/video/windows
Sam Lantinga 4e9c9fce13 Fixed bug 3100 - SetSwapInterval should now be enabled for ANGLE/EGL
Mark Logan 2015-08-24 15:57:50 UTC
In SDL_windowsopengles.c, WIN_GLES_SetSwapInterval is as follows:

WIN_GLES_SetSwapInterval(_THIS, int interval)
{
    /* FIXME: This should call SDL_EGL_SetSwapInterval, but ANGLE has a bug that prevents this
     * from working if we do (the window contents freeze and don't swap properly). So, we ignore
     * the request for now.
     */
    SDL_Log("WARNING: Ignoring SDL_GL_SetSwapInterval call due to ANGLE bug");
    return 0;
}

With a recent version of ANGLE (early July) calling SDL_EGL_SetSwapInterval with a D3D11 backend appears to work just fine. I am working on testing this with D3D9.

--

Alex Szpakowski

I found the bug, it was fixed in 2013. https://bugs.chromium.org/p/angleproject/issues/detail?id=481

In my opinion it should be safe to unconditionally use SetSwapInterval now. Anyone who encounters the bug should update their ANGLE to a version less than 3 years old, especially since they'd be using a SDL version that's 3+ years newer than their ANGLE version.
2017-01-09 10:10:33 -08:00
..
SDL_msctf.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_vkeys.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_windowsclipboard.c Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_windowsclipboard.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_windowsevents.c Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_windowsevents.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_windowsframebuffer.c Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_windowsframebuffer.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_windowskeyboard.c Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_windowskeyboard.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_windowsmessagebox.c Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_windowsmessagebox.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_windowsmodes.c Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_windowsmodes.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_windowsmouse.c Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_windowsmouse.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_windowsopengl.c Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_windowsopengl.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_windowsopengles.c Fixed bug 3100 - SetSwapInterval should now be enabled for ANGLE/EGL 2017-01-09 10:10:33 -08:00
SDL_windowsopengles.h Fixed bug 3100 - SetSwapInterval should now be enabled for ANGLE/EGL 2017-01-09 10:10:33 -08:00
SDL_windowsshape.c Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_windowsshape.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_windowsvideo.c Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_windowsvideo.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_windowswindow.c Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_windowswindow.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
wmmsg.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00