summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2010-02-04 16:15:45 -0800
committerIan Romanick <[email protected]>2010-02-11 15:40:29 -0800
commit68fef184390da2fd67acfd99fba0a2dbe4a3b875 (patch)
treefe0507dbbf9607dcf9bcd7e69dbbd78f795bb781 /src
parent1add5354d0fbfb2d9b6a4a3fd6a39225bcadc098 (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')
-rw-r--r--src/glx/glxcmds.c4
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,