summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorJon Smirl <[email protected]>2005-05-06 05:50:41 +0000
committerJon Smirl <[email protected]>2005-05-06 05:50:41 +0000
commitbd8162aaac225fdbdc228c4419d08fa3751b9af6 (patch)
tree3205db636db1097cd76c6e66b6433e72308234e7 /src/mesa
parent4a55d4ffa704956c8eed5a78aea847e7de06d5c3 (diff)
Fix problem generating mode db. Miniglxtest works now.
Miniglxsample is still broken with double buffering issues.
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/fb/fb_dri.c6
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 93a6d9ddfe9..992b330c59e 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;
}