egl/x11: Fix initialisation of swap_interval
authorRalf Jung <post@ralfj.de>
Tue, 9 Apr 2013 12:09:50 +0000 (14:09 +0200)
committerChad Versace <chad.versace@linux.intel.com>
Thu, 11 Apr 2013 02:16:45 +0000 (19:16 -0700)
commit3998f8c6b5da1a223926249755e54d8f701f81ab
treed4352c05891ddd7093848a6b0ae1e2be87aa03da
parentcbe24ff7c8d69a6d378d9c2cce2bc117517f4302
egl/x11: Fix initialisation of swap_interval

The EGLConfig attributes EGL_MIN/MAX_SWAP_INTERVAL were incorrectly set to
0 and 0. This prevented clients from setting the swap interval to a
reasonable value, like 1 or 2.

Swap interval worked correctly in Mesa 9.0. The commit below introduced
the bug.

    commit 7e9bd2b2ed35a440a96362417100a7e43715d606
    Author: Eric Anholt <eric@anholt.net>
    Date:   Tue Sep 25 14:05:30 2012 -0700
egl: Add support for driconf control of swapinterval.

Note: This is a candidate for the 9.1 branch.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=63078
[chadv: Wrote commit message]
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/egl/drivers/dri2/platform_x11.c