From f8cc27ecfc116b4480e2a6b83a4fdbfdcd078d26 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Sun, 4 Sep 2005 14:59:34 +0000 Subject: Added InitPointers helper function --- src/mesa/drivers/dri/common/spantmp.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src') 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 -- cgit v1.2.3