diff options
author | Jon Smirl <jonsmirl@gmail.com> | 2005-06-07 02:10:14 +0000 |
---|---|---|
committer | Jon Smirl <jonsmirl@gmail.com> | 2005-06-07 02:10:14 +0000 |
commit | c20a2b0b72e083281485fbb1f6c99a97a79720a3 (patch) | |
tree | 08f68060888944f386e62e6143bf7fbbba3d6bd2 /src/mesa | |
parent | ef9e0be0cb21f995d5b14060ca63a51e9b1cd52e (diff) |
Add SetBuffer to egl driver too
Diffstat (limited to 'src/mesa')
-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 85074ac112..01014f7efd 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 1e82f2179d..977275c33c 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 */ |