summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/fb/fb_egl.c
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2005-09-04 22:13:42 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2005-09-04 22:13:42 +0000
commit61ba6b5a74625a01e07ae267c6e4ebf192434e40 (patch)
treea2d72f7ed22881262b8e508b1dc0cefd8f0ca039 /src/mesa/drivers/dri/fb/fb_egl.c
parent6e0e6eff05727ac8833c2b2dffc51c6619427e77 (diff)
downloadexternal_mesa3d-61ba6b5a74625a01e07ae267c6e4ebf192434e40.zip
external_mesa3d-61ba6b5a74625a01e07ae267c6e4ebf192434e40.tar.gz
external_mesa3d-61ba6b5a74625a01e07ae267c6e4ebf192434e40.tar.bz2
Add new void *addr and __DRIdrawablePrivate parameters to
driNewRenderbuffer().
Diffstat (limited to 'src/mesa/drivers/dri/fb/fb_egl.c')
-rw-r--r--src/mesa/drivers/dri/fb/fb_egl.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/mesa/drivers/dri/fb/fb_egl.c b/src/mesa/drivers/dri/fb/fb_egl.c
index 1b91919..94ff9cb 100644
--- a/src/mesa/drivers/dri/fb/fb_egl.c
+++ b/src/mesa/drivers/dri/fb/fb_egl.c
@@ -682,20 +682,21 @@ fbCreateScreenSurfaceMESA(_EGLDriver *drv, EGLDisplay dpy, EGLConfig cfg,
/* front color renderbuffer */
{
- driRenderbuffer *drb = driNewRenderbuffer(GL_RGBA, bytesPerPixel,
- origin, stride);
+ driRenderbuffer *drb = driNewRenderbuffer(GL_RGBA, display->pFB,
+ bytesPerPixel,
+ origin, stride, NULL);
fbSetSpanFunctions(drb, &vis);
- drb->Base.Data = display->pFB;
_mesa_add_renderbuffer(surface->mesa_framebuffer,
BUFFER_FRONT_LEFT, &drb->Base);
}
/* back color renderbuffer */
if (vis.doubleBufferMode) {
- driRenderbuffer *drb = driNewRenderbuffer(GL_RGBA, bytesPerPixel,
- origin, stride);
+ GLubyte *backBuf = _mesa_malloc(stride * height);
+ driRenderbuffer *drb = driNewRenderbuffer(GL_RGBA, backBuf,
+ bytesPerPixel,
+ origin, stride, NULL);
fbSetSpanFunctions(drb, &vis);
- drb->Base.Data = _mesa_malloc(stride * height);
_mesa_add_renderbuffer(surface->mesa_framebuffer,
BUFFER_BACK_LEFT, &drb->Base);
}