diff options
author | David Reveman <c99drn@cs.umu.se> | 2005-07-01 03:14:54 +0000 |
---|---|---|
committer | David Reveman <c99drn@cs.umu.se> | 2005-07-01 03:14:54 +0000 |
commit | 276821605ee50e71f30dd52f2c12237fc61f288f (patch) | |
tree | 677a36079bb7c8f66c6296974ed294e2fd3857a3 /hw/xgl | |
parent | 5e381441fff411316ea202a9f85aceb0e0dcf46b (diff) |
Fix return values in Xgl render texture implementation
Diffstat (limited to 'hw/xgl')
-rw-r--r-- | hw/xgl/xglglx.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/hw/xgl/xglglx.c b/hw/xgl/xglglx.c index fe761bdbb..4c283f437 100644 --- a/hw/xgl/xglglx.c +++ b/hw/xgl/xglglx.c @@ -4378,11 +4378,11 @@ xglBindBuffers (__GLXdrawablePrivate *glxPriv, /* XXX: front left buffer is only supported so far */ if (buffer != GLX_FRONT_LEFT_EXT) - return FALSE; + return BadMatch; /* Must be a GLXpixmap */ if (!glxPriv->pGlxPixmap) - return FALSE; + return __glXBadDrawable; pDrawable = glxPriv->pGlxPixmap->pDraw; @@ -4408,7 +4408,7 @@ xglBindBuffers (__GLXdrawablePrivate *glxPriv, pTexObj->pPixmap = pPixmap; - return TRUE; + return Success; } } else if (pBufferPriv->private) @@ -4422,7 +4422,7 @@ xglBindBuffers (__GLXdrawablePrivate *glxPriv, return status; } - return FALSE; + return __glXBadContext; } static int @@ -4438,7 +4438,7 @@ xglReleaseBuffers (__GLXdrawablePrivate *glxPriv, /* XXX: front left buffer is only supported so far */ if (buffer != GLX_FRONT_LEFT_EXT) - return FALSE; + return BadMatch; /* Must be a GLXpixmap */ if (glxPriv->pGlxPixmap) @@ -4453,7 +4453,7 @@ xglReleaseBuffers (__GLXdrawablePrivate *glxPriv, (*pDrawable->pScreen->DestroyPixmap) (pTexObj->pPixmap); pTexObj->pPixmap = NULL; - return TRUE; + return Success; } else { @@ -4463,7 +4463,7 @@ xglReleaseBuffers (__GLXdrawablePrivate *glxPriv, (*pDrawable->pScreen->DestroyPixmap) (pTexObj->pPixmap); pTexObj->pPixmap = NULL; - return TRUE; + return Success; } } } @@ -4479,7 +4479,7 @@ xglReleaseBuffers (__GLXdrawablePrivate *glxPriv, return status; } - return FALSE; + return __glXBadContext; } static void |