From: Aapo Tahkola Date: Wed, 26 Apr 2006 12:00:53 +0000 (+0000) Subject: fix warnings. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e440bcf41a9d21d3e0b118472564eedaf09b44fe;p=mesa.git fix warnings. --- diff --git a/src/mesa/drivers/dri/r300/radeon_span.c b/src/mesa/drivers/dri/r300/radeon_span.c index f7c07562171..1b74f6779b4 100644 --- a/src/mesa/drivers/dri/r300/radeon_span.c +++ b/src/mesa/drivers/dri/r300/radeon_span.c @@ -40,7 +40,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * Keith Whitwell * */ - +#include #include "glheader.h" #include "imports.h" #include "swrast/swrast.h" @@ -254,7 +254,7 @@ static void radeonSpanRenderStart( GLcontext *ctx ) radeonContextPtr rmesa = RADEON_CONTEXT( ctx ); { static int first = 1; - r300ContextPtr r300 = rmesa; + r300ContextPtr r300 = (r300ContextPtr)rmesa; if (first) { r300->span_dlocking = getenv("R300_SPAN_DISABLE_LOCKING") ? 1 : 0; @@ -285,7 +285,7 @@ static void radeonSpanRenderStart( GLcontext *ctx ) static void radeonSpanRenderFinish( GLcontext *ctx ) { radeonContextPtr rmesa = RADEON_CONTEXT( ctx ); - r300ContextPtr r300 = rmesa; + r300ContextPtr r300 = (r300ContextPtr)rmesa; _swrast_flush( ctx ); if (r300->span_dlocking == 0) UNLOCK_HARDWARE( rmesa );