diff options
author | Brian Paul <[email protected]> | 2003-02-25 19:25:52 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2003-02-25 19:25:52 +0000 |
commit | 4039cb8ca82d59451a6de8902fe35e693cdca3ba (patch) | |
tree | 0ea4e7518923243d8d49064719c1206f16c63640 /src/mesa/drivers | |
parent | b10c434a8f1b760e5a5516729761944d3e84d894 (diff) |
casts to silence g++ warnings
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r-- | src/mesa/drivers/osmesa/osmesa.c | 4 | ||||
-rw-r--r-- | src/mesa/drivers/x11/fakeglx.c | 10 |
2 files changed, 7 insertions, 7 deletions
diff --git a/src/mesa/drivers/osmesa/osmesa.c b/src/mesa/drivers/osmesa/osmesa.c index 09d52073ed7..5901ae29a09 100644 --- a/src/mesa/drivers/osmesa/osmesa.c +++ b/src/mesa/drivers/osmesa/osmesa.c @@ -1,4 +1,4 @@ -/* $Id: osmesa.c,v 1.98 2002/11/14 03:48:03 brianp Exp $ */ +/* $Id: osmesa.c,v 1.99 2003/02/25 19:25:54 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -165,7 +165,7 @@ clear( GLcontext *ctx, GLbitfield mask, GLboolean all, if (mask & DD_FRONT_LEFT_BIT) { if (osmesa->format == OSMESA_COLOR_INDEX) { if (ctx->Color.ClearIndex == 0 && - ctx->Color.IndexMask == ~0 && + ctx->Color.IndexMask == (GLuint) ~0 && osmesa->rowlength == osmesa->width && all) { /* clear whole buffer to zeros */ diff --git a/src/mesa/drivers/x11/fakeglx.c b/src/mesa/drivers/x11/fakeglx.c index 480bc0a5067..b9a7ce4c6d7 100644 --- a/src/mesa/drivers/x11/fakeglx.c +++ b/src/mesa/drivers/x11/fakeglx.c @@ -1,4 +1,4 @@ -/* $Id: fakeglx.c,v 1.78 2003/01/14 04:49:07 brianp Exp $ */ +/* $Id: fakeglx.c,v 1.79 2003/02/25 19:25:58 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -1187,7 +1187,7 @@ Fake_glXChooseVisual( Display *dpy, int screen, int *list ) return xmvis->vishandle; #else /* create a new vishandle - the cached one may be stale */ - xmvis->vishandle = _mesa_malloc(sizeof(XVisualInfo)); + xmvis->vishandle = (XVisualInfo *) _mesa_malloc(sizeof(XVisualInfo)); if (xmvis->vishandle) { _mesa_memcpy(xmvis->vishandle, xmvis->visinfo, sizeof(XVisualInfo)); } @@ -1848,7 +1848,7 @@ Fake_glXChooseFBConfig( Display *dpy, int screen, { XMesaVisual xmvis = choose_visual(dpy, screen, attribList); if (xmvis) { - GLXFBConfig *config = _mesa_malloc(sizeof(XMesaVisual)); + GLXFBConfig *config = (GLXFBConfig *) _mesa_malloc(sizeof(XMesaVisual)); if (!config) { *nitems = 0; return NULL; @@ -1891,7 +1891,7 @@ Fake_glXGetFBConfigs( Display *dpy, int screen, int *nelements ) visuals = XGetVisualInfo(dpy, visMask, &visTemplate, nelements); if (*nelements > 0) { XMesaVisual *results; - results = _mesa_malloc(*nelements * sizeof(XMesaVisual)); + results = (XMesaVisual *) _mesa_malloc(*nelements * sizeof(XMesaVisual)); if (!results) { *nelements = 0; return NULL; @@ -1914,7 +1914,7 @@ Fake_glXGetVisualFromFBConfig( Display *dpy, GLXFBConfig config ) return xmvis->vishandle; #else /* create a new vishandle - the cached one may be stale */ - xmvis->vishandle = _mesa_malloc(sizeof(XVisualInfo)); + xmvis->vishandle = (XVisualInfo *) _mesa_malloc(sizeof(XVisualInfo)); if (xmvis->vishandle) { _mesa_memcpy(xmvis->vishandle, xmvis->visinfo, sizeof(XVisualInfo)); } |