diff options
author | Aapo Tahkola <aet@rasterburn.org> | 2006-04-26 12:00:53 +0000 |
---|---|---|
committer | Aapo Tahkola <aet@rasterburn.org> | 2006-04-26 12:00:53 +0000 |
commit | e440bcf41a9d21d3e0b118472564eedaf09b44fe (patch) | |
tree | 7849a8d199636f161b9a4f15beef82a348169c1f /src/mesa/drivers/dri | |
parent | d44c3e647fe99a3aa1175fcbd6a2179d7d1f17fb (diff) |
fix warnings.
Diffstat (limited to 'src/mesa/drivers/dri')
-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 f7c0756217..1b74f6779b 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 <keith@tungstengraphics.com> * */ - +#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 ); |