diff options
author | Jon Smirl <jonsmirl@gmail.com> | 2005-05-06 05:50:41 +0000 |
---|---|---|
committer | Jon Smirl <jonsmirl@gmail.com> | 2005-05-06 05:50:41 +0000 |
commit | bd8162aaac225fdbdc228c4419d08fa3751b9af6 (patch) | |
tree | 3205db636db1097cd76c6e66b6433e72308234e7 /src/mesa/drivers/dri/fb/fb_dri.c | |
parent | 4a55d4ffa704956c8eed5a78aea847e7de06d5c3 (diff) | |
download | external_mesa3d-bd8162aaac225fdbdc228c4419d08fa3751b9af6.zip external_mesa3d-bd8162aaac225fdbdc228c4419d08fa3751b9af6.tar.gz external_mesa3d-bd8162aaac225fdbdc228c4419d08fa3751b9af6.tar.bz2 |
Fix problem generating mode db. Miniglxtest works now.
Miniglxsample is still broken with double buffering issues.
Diffstat (limited to 'src/mesa/drivers/dri/fb/fb_dri.c')
-rw-r--r-- | src/mesa/drivers/dri/fb/fb_dri.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/fb/fb_dri.c b/src/mesa/drivers/dri/fb/fb_dri.c index 93a6d9d..992b330 100644 --- a/src/mesa/drivers/dri/fb/fb_dri.c +++ b/src/mesa/drivers/dri/fb/fb_dri.c @@ -500,7 +500,7 @@ fbCreateBuffer( __DRIscreenPrivate *driScrnPriv, /* XXX double-check these parameters (bpp vs cpp, etc) */ { - driRenderbuffer *drb = driNewRenderbuffer(GL_RGBA, driScrnPriv->fbBPP, + driRenderbuffer *drb = driNewRenderbuffer(GL_RGBA, driScrnPriv->fbBPP / 8, driScrnPriv->fbOrigin, driScrnPriv->fbStride); fbSetSpanFunctions(drb, mesaVis); @@ -509,7 +509,7 @@ fbCreateBuffer( __DRIscreenPrivate *driScrnPriv, } if (mesaVis->doubleBufferMode) { /* XXX what are the correct origin/stride values? */ - driRenderbuffer *drb = driNewRenderbuffer(GL_RGBA, driScrnPriv->fbBPP, + driRenderbuffer *drb = driNewRenderbuffer(GL_RGBA, driScrnPriv->fbBPP /8, driScrnPriv->fbOrigin, driScrnPriv->fbStride); fbSetSpanFunctions(drb, mesaVis); @@ -767,7 +767,7 @@ fbFillInModes( unsigned pixel_bits, unsigned depth_bits, fb_type = GL_UNSIGNED_SHORT_5_6_5; } else { - fb_format = GL_BGR; + fb_format = GL_RGBA; fb_type = GL_UNSIGNED_INT_8_8_8_8_REV; } |