From: Brian Paul Date: Sun, 4 Sep 2005 14:59:34 +0000 (+0000) Subject: Added InitPointers helper function X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f8cc27ecfc116b4480e2a6b83a4fdbfdcd078d26;p=mesa.git Added InitPointers helper function --- 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