r300: Last of the indent changes. :)
[mesa.git] / src / mesa / drivers / dri / r300 / radeon_span.c
index f7c075621714556cbef1002f925836f6969e27ac..cc779d684fbd173f92a49bfcecb5d6335fa237bc 100644 (file)
@@ -1,4 +1,3 @@
-/* $XFree86: xc/lib/GL/mesa/src/drv/radeon/radeon_span.c,v 1.6 2002/10/30 12:51:56 alanh Exp $ */
 /**************************************************************************
 
 Copyright (C) The Weather Channel, Inc.  2002.  All Rights Reserved.
@@ -40,7 +39,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 +253,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 +284,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 );