diff options
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r-- | src/mesa/drivers/dri/fb/fb_dri.c | 2 | ||||
-rw-r--r-- | src/mesa/drivers/dri/fb/fb_egl.c | 3 |
2 files changed, 4 insertions, 1 deletions
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 */ |