Added InitPointers helper function
authorBrian Paul <brian.paul@tungstengraphics.com>
Sun, 4 Sep 2005 14:59:34 +0000 (14:59 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Sun, 4 Sep 2005 14:59:34 +0000 (14:59 +0000)
src/mesa/drivers/dri/common/spantmp.h

index f726e83053d3b18a938f7b23aa377d83dc61ee41..d5608b880653508adf44680800d48c705df2af4b 100644 (file)
@@ -320,6 +320,16 @@ static void TAG(ReadRGBAPixels)( GLcontext *ctx,
 }
 
 
+static void TAG(InitPointers)(struct gl_renderbuffer *rb)
+{
+   rb->PutRow = TAG(WriteRGBASpan);
+   rb->PutRowRGB = TAG(WriteRGBSpan);
+   rb->PutMonoRow = TAG(WriteMonoRGBASpan);
+   rb->PutValues = TAG(WriteRGBAPixels);
+   rb->PutMonoValues = TAG(WriteMonoRGBAPixels);
+   rb->GetValues = TAG(ReadRGBAPixels);
+   rb->GetRow = TAG(ReadRGBASpan);
+}
 
 
 #undef WRITE_PIXEL