From c20a2b0b72e083281485fbb1f6c99a97a79720a3 Mon Sep 17 00:00:00 2001 From: Jon Smirl Date: Tue, 7 Jun 2005 02:10:14 +0000 Subject: [PATCH] Add SetBuffer to egl driver too --- src/mesa/drivers/dri/fb/fb_dri.c | 2 +- src/mesa/drivers/dri/fb/fb_egl.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/fb/fb_dri.c b/src/mesa/drivers/dri/fb/fb_dri.c index 85074ac1127..01014f7efdb 100644 --- a/src/mesa/drivers/dri/fb/fb_dri.c +++ b/src/mesa/drivers/dri/fb/fb_dri.c @@ -316,7 +316,7 @@ fbDestroyScreen( __DRIscreenPrivate *sPriv ) { } -static void fbSetBuffer( GLcontext *ctx, +void fbSetBuffer( GLcontext *ctx, GLframebuffer *colorBuffer, GLuint bufferBit ) { diff --git a/src/mesa/drivers/dri/fb/fb_egl.c b/src/mesa/drivers/dri/fb/fb_egl.c index 1e82f2179d4..977275c33c7 100644 --- a/src/mesa/drivers/dri/fb/fb_egl.c +++ b/src/mesa/drivers/dri/fb/fb_egl.c @@ -37,6 +37,8 @@ extern void fbSetSpanFunctions(driRenderbuffer *drb, const GLvisual *vis); +extern void +fbSetBuffer( GLcontext *ctx, GLframebuffer *colorBuffer, GLuint bufferBit); /** * fb driver-specific driver class derived from _EGLDriver @@ -485,6 +487,7 @@ fbCreateContext(_EGLDriver *drv, EGLDisplay dpy, EGLConfig config, EGLContext sh { struct swrast_device_driver *swdd; swdd = _swrast_GetDeviceDriverReference( ctx ); + swdd->SetBuffer = fbSetBuffer; } /* use default TCL pipeline */ -- 2.30.2