From b2b01a60dbba4ebd130898509c14ca80a847a679 Mon Sep 17 00:00:00 2001 From: Ben Crossman Date: Thu, 14 Apr 2005 16:58:25 +0000 Subject: Some initial compile fixes. Still some left and warnings that need fixing. No where near runnable yet. --- src/mesa/drivers/windows/gldirect/dx7/gld_primitive_dx7.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/mesa/drivers/windows/gldirect/dx7/gld_primitive_dx7.c') diff --git a/src/mesa/drivers/windows/gldirect/dx7/gld_primitive_dx7.c b/src/mesa/drivers/windows/gldirect/dx7/gld_primitive_dx7.c index a0642b4bd1..5da25003c0 100644 --- a/src/mesa/drivers/windows/gldirect/dx7/gld_primitive_dx7.c +++ b/src/mesa/drivers/windows/gldirect/dx7/gld_primitive_dx7.c @@ -50,7 +50,7 @@ #include "macros.h" #include "matrix.h" // #include "mem.h" -#include "mmath.h" +//#include "mmath.h" #include "mtypes.h" #include "texformat.h" #include "texstore.h" @@ -189,9 +189,9 @@ GLfloat ex,ey,fx,fy,cc; \ /* Get vars for later */ \ VB = &TNL_CONTEXT(ctx)->vb; \ - vbcolor = (GLchan (*)[4])VB->ColorPtr[1]->Ptr; \ + vbcolor = (GLchan (*)[4])VB->ColorPtr[1]->data; \ if (VB->SecondaryColorPtr[1]) { \ - vbspec = (GLchan (*)[4])VB->SecondaryColorPtr[1]->Ptr; \ + vbspec = (GLchan (*)[4])VB->SecondaryColorPtr[1]->data; \ } else { \ vbspec = NULL; \ } \ @@ -247,12 +247,12 @@ pV->Position.z = p4f[##v][2]; #define GLD_SETUP_SMOOTH_COLOUR_3D(v) \ - p4f = (GLfloat (*)[4])VB->ColorPtr[0]->Ptr; \ + p4f = (GLfloat (*)[4])VB->ColorPtr[0]->data; \ pV->Diffuse = D3DCOLOR_COLORVALUE(p4f[##v][0], p4f[##v][1], p4f[##v][2], p4f[##v][3]); #define GLD_SETUP_GET_FLAT_COLOUR_3D(v) \ - p4f = (GLfloat (*)[4])VB->ColorPtr[0]->Ptr; \ + p4f = (GLfloat (*)[4])VB->ColorPtr[0]->data; \ dwColor = D3DCOLOR_COLORVALUE(p4f[##v][0], p4f[##v][1], p4f[##v][2], p4f[##v][3]); #define GLD_SETUP_USE_FLAT_COLOUR_3D \ -- cgit v1.2.3