From: Jon Smirl Date: Tue, 7 Jun 2005 02:10:14 +0000 (+0000) Subject: Add SetBuffer to egl driver too X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c20a2b0b72e083281485fbb1f6c99a97a79720a3;p=mesa.git Add SetBuffer to egl driver too --- 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 */