Fix return values in Xgl render texture implementation

This commit is contained in:
David Reveman 2005-07-01 03:14:54 +00:00
parent 5e381441ff
commit 276821605e

View File

@ -4378,11 +4378,11 @@ xglBindBuffers (__GLXdrawablePrivate *glxPriv,
/* XXX: front left buffer is only supported so far */ /* XXX: front left buffer is only supported so far */
if (buffer != GLX_FRONT_LEFT_EXT) if (buffer != GLX_FRONT_LEFT_EXT)
return FALSE; return BadMatch;
/* Must be a GLXpixmap */ /* Must be a GLXpixmap */
if (!glxPriv->pGlxPixmap) if (!glxPriv->pGlxPixmap)
return FALSE; return __glXBadDrawable;
pDrawable = glxPriv->pGlxPixmap->pDraw; pDrawable = glxPriv->pGlxPixmap->pDraw;
@ -4408,7 +4408,7 @@ xglBindBuffers (__GLXdrawablePrivate *glxPriv,
pTexObj->pPixmap = pPixmap; pTexObj->pPixmap = pPixmap;
return TRUE; return Success;
} }
} }
else if (pBufferPriv->private) else if (pBufferPriv->private)
@ -4422,7 +4422,7 @@ xglBindBuffers (__GLXdrawablePrivate *glxPriv,
return status; return status;
} }
return FALSE; return __glXBadContext;
} }
static int static int
@ -4438,7 +4438,7 @@ xglReleaseBuffers (__GLXdrawablePrivate *glxPriv,
/* XXX: front left buffer is only supported so far */ /* XXX: front left buffer is only supported so far */
if (buffer != GLX_FRONT_LEFT_EXT) if (buffer != GLX_FRONT_LEFT_EXT)
return FALSE; return BadMatch;
/* Must be a GLXpixmap */ /* Must be a GLXpixmap */
if (glxPriv->pGlxPixmap) if (glxPriv->pGlxPixmap)
@ -4453,7 +4453,7 @@ xglReleaseBuffers (__GLXdrawablePrivate *glxPriv,
(*pDrawable->pScreen->DestroyPixmap) (pTexObj->pPixmap); (*pDrawable->pScreen->DestroyPixmap) (pTexObj->pPixmap);
pTexObj->pPixmap = NULL; pTexObj->pPixmap = NULL;
return TRUE; return Success;
} }
else else
{ {
@ -4463,7 +4463,7 @@ xglReleaseBuffers (__GLXdrawablePrivate *glxPriv,
(*pDrawable->pScreen->DestroyPixmap) (pTexObj->pPixmap); (*pDrawable->pScreen->DestroyPixmap) (pTexObj->pPixmap);
pTexObj->pPixmap = NULL; pTexObj->pPixmap = NULL;
return TRUE; return Success;
} }
} }
} }
@ -4479,7 +4479,7 @@ xglReleaseBuffers (__GLXdrawablePrivate *glxPriv,
return status; return status;
} }
return FALSE; return __glXBadContext;
} }
static void static void