summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2005-09-04 14:59:34 +0000
committerBrian Paul <[email protected]>2005-09-04 14:59:34 +0000
commitf8cc27ecfc116b4480e2a6b83a4fdbfdcd078d26 (patch)
tree925c4fdca8c4fb08247339f23973f8e385ea20d1 /src
parent16f76703a54795377a4894be26cd5239f814417f (diff)
Added InitPointers helper function
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/common/spantmp.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/common/spantmp.h b/src/mesa/drivers/dri/common/spantmp.h
index f726e83053d..d5608b88065 100644
--- a/src/mesa/drivers/dri/common/spantmp.h
+++ b/src/mesa/drivers/dri/common/spantmp.h
@@ -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