Add SetBuffer to egl driver too
authorJon Smirl <jonsmirl@gmail.com>
Tue, 7 Jun 2005 02:10:14 +0000 (02:10 +0000)
committerJon Smirl <jonsmirl@gmail.com>
Tue, 7 Jun 2005 02:10:14 +0000 (02:10 +0000)
src/mesa/drivers/dri/fb/fb_dri.c
src/mesa/drivers/dri/fb/fb_egl.c

index 85074ac1127f28505b6c490ca283173e657b2e32..01014f7efdb0c4881fd4b8b61711616f1afe743e 100644 (file)
@@ -316,7 +316,7 @@ fbDestroyScreen( __DRIscreenPrivate *sPriv )
 {
 }
 
-static void fbSetBuffer( GLcontext *ctx,
+void fbSetBuffer( GLcontext *ctx,
                              GLframebuffer *colorBuffer,
                              GLuint bufferBit )
 {
index 1e82f2179d4d08a0d950becc0452e27a5b3a5657..977275c33c7277b5bd608cf6b6bfca23bf174656 100644 (file)
@@ -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 */