diff options
author | Brian Paul <[email protected]> | 2000-09-12 17:03:59 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2000-09-12 17:03:59 +0000 |
commit | 82cfcfa63a7823a97c368c26e049926044abf89b (patch) | |
tree | 366cf89b31c8b2af7d655a22205f89a4f67260a2 /src/mesa/drivers/x11/xm_tri.c | |
parent | b9466fca3e5e9c2b46f6588e580a92e7e703d15d (diff) |
added some casts (Takaaki Nomura)
Diffstat (limited to 'src/mesa/drivers/x11/xm_tri.c')
-rw-r--r-- | src/mesa/drivers/x11/xm_tri.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/src/mesa/drivers/x11/xm_tri.c b/src/mesa/drivers/x11/xm_tri.c index 02b186a0b5e..870a2575733 100644 --- a/src/mesa/drivers/x11/xm_tri.c +++ b/src/mesa/drivers/x11/xm_tri.c @@ -1,10 +1,10 @@ -/* $Id: xm_tri.c,v 1.1 2000/09/07 15:40:30 brianp Exp $ */ +/* $Id: xm_tri.c,v 1.2 2000/09/12 17:03:59 brianp Exp $ */ /* * Mesa 3-D graphics library - * Version: 3.3 + * Version: 3.5 * - * Copyright (C) 1999 Brian Paul All Rights Reserved. + * Copyright (C) 1999-2000 Brian Paul All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), @@ -1540,8 +1540,8 @@ triangle_func xmesa_get_triangle_func( GLcontext *ctx ) (void) kernel1; - if (ctx->Polygon.SmoothFlag) return NULL; - if (ctx->Texture.Enabled) return NULL; + if (ctx->Polygon.SmoothFlag) return (triangle_func)NULL; + if (ctx->Texture.Enabled) return (triangle_func)NULL; if (xmesa->xm_buffer->buffer==XIMAGE) { if ( ctx->Light.ShadeModel==GL_SMOOTH @@ -1571,9 +1571,9 @@ triangle_func xmesa_get_triangle_func( GLcontext *ctx ) return (depth==8) ? smooth_DITHER8_z_triangle : smooth_DITHER_z_triangle; case PF_LOOKUP: - return (depth==8) ? smooth_LOOKUP8_z_triangle : NULL; + return (depth==8) ? smooth_LOOKUP8_z_triangle : (triangle_func)NULL; default: - return NULL; + return (triangle_func)NULL; } } if ( ctx->Light.ShadeModel==GL_FLAT @@ -1603,9 +1603,9 @@ triangle_func xmesa_get_triangle_func( GLcontext *ctx ) return (depth==8) ? flat_DITHER8_z_triangle : flat_DITHER_z_triangle; case PF_LOOKUP: - return (depth==8) ? flat_LOOKUP8_z_triangle : NULL; + return (depth==8) ? flat_LOOKUP8_z_triangle : (triangle_func)NULL; default: - return NULL; + return (triangle_func)NULL; } } if ( ctx->RasterMask==0 /* no depth test */ @@ -1632,9 +1632,9 @@ triangle_func xmesa_get_triangle_func( GLcontext *ctx ) return (depth==8) ? smooth_DITHER8_triangle : smooth_DITHER_triangle; case PF_LOOKUP: - return (depth==8) ? smooth_LOOKUP8_triangle : NULL; + return (depth==8) ? smooth_LOOKUP8_triangle : (triangle_func)NULL; default: - return NULL; + return (triangle_func)NULL; } } @@ -1662,13 +1662,13 @@ triangle_func xmesa_get_triangle_func( GLcontext *ctx ) return (depth==8) ? flat_DITHER8_triangle : flat_DITHER_triangle; case PF_LOOKUP: - return (depth==8) ? flat_LOOKUP8_triangle : NULL; + return (depth==8) ? flat_LOOKUP8_triangle : (triangle_func)NULL; default: - return NULL; + return (triangle_func)NULL; } } - return NULL; + return (triangle_func)NULL; } else { /* draw to pixmap */ @@ -1680,11 +1680,11 @@ triangle_func xmesa_get_triangle_func( GLcontext *ctx ) */ if (ctx->Light.ShadeModel==GL_FLAT && ctx->RasterMask==0) { if (ctx->Color.DitherFlag && depth < 24) - return NULL; + return (triangle_func)NULL; setup_x_polygon_options( ctx ); return flat_pixmap_triangle; } #endif - return NULL; + return (triangle_func)NULL; } } |