diff options
author | Ian Romanick <[email protected]> | 2010-02-04 16:15:45 -0800 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2010-02-11 15:40:29 -0800 |
commit | 68fef184390da2fd67acfd99fba0a2dbe4a3b875 (patch) | |
tree | fe0507dbbf9607dcf9bcd7e69dbbd78f795bb781 /src/glx/glxcmds.c | |
parent | 1add5354d0fbfb2d9b6a4a3fd6a39225bcadc098 (diff) |
glx: Fix interval test in glXSwapIntervalMESA
It appears that, in spite of what the spec says, the interval
parameter to glXSwapIntervalMESA has been an unsigned int since
day-1. This made the 'if (interval < 0)' test useless. The test is
removed and the spec is updated to note that the interval is an
unsigned value.
Diffstat (limited to 'src/glx/glxcmds.c')
-rw-r--r-- | src/glx/glxcmds.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/glx/glxcmds.c b/src/glx/glxcmds.c index 19538f2e5c0..c429545f99a 100644 --- a/src/glx/glxcmds.c +++ b/src/glx/glxcmds.c @@ -1951,10 +1951,6 @@ __glXSwapIntervalMESA(unsigned int interval) { GLXContext gc = __glXGetCurrentContext(); - if (interval < 0) { - return GLX_BAD_VALUE; - } - #ifdef __DRI_SWAP_CONTROL if (gc != NULL && gc->driContext) { __GLXscreenConfigs *const psc = GetGLXScreenConfigs(gc->currentDpy, |