* Keith Whitwell <keith@tungstengraphics.com>
*
*/
-
+#include <unistd.h>
#include "glheader.h"
#include "imports.h"
#include "swrast/swrast.h"
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;
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 );