diff options
author | Aapo Tahkola <[email protected]> | 2006-04-26 12:00:53 +0000 |
---|---|---|
committer | Aapo Tahkola <[email protected]> | 2006-04-26 12:00:53 +0000 |
commit | e440bcf41a9d21d3e0b118472564eedaf09b44fe (patch) | |
tree | 7849a8d199636f161b9a4f15beef82a348169c1f /src/mesa | |
parent | d44c3e647fe99a3aa1175fcbd6a2179d7d1f17fb (diff) |
fix warnings.
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/drivers/dri/r300/radeon_span.c | 6 |
1 files changed, 3 insertions, 3 deletions
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 <[email protected]> * */ - +#include <unistd.h> #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 ); |