summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/fb
diff options
context:
space:
mode:
authorJon Smirl <jonsmirl@gmail.com>2005-05-17 03:38:06 +0000
committerJon Smirl <jonsmirl@gmail.com>2005-05-17 03:38:06 +0000
commit40c1c723fb77b0d9c1a1958498597403d2238ee7 (patch)
tree1fe9b82bb91ea84961d9406bca1ac9683cd4b20c /src/mesa/drivers/dri/fb
parentbf7f998f39852f5126ea455b1f48007f02d1ad11 (diff)
Compute stride in the right order
Diffstat (limited to 'src/mesa/drivers/dri/fb')
-rw-r--r--src/mesa/drivers/dri/fb/fb_egl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/fb/fb_egl.c b/src/mesa/drivers/dri/fb/fb_egl.c
index 813afec035..62e26021c5 100644
--- a/src/mesa/drivers/dri/fb/fb_egl.c
+++ b/src/mesa/drivers/dri/fb/fb_egl.c
@@ -654,9 +654,9 @@ fbCreateScreenSurfaceMESA(_EGLDriver *drv, EGLDisplay dpy, EGLConfig cfg,
}
width = surface->Base.Width;
- stride = width * bytesPerPixel;
height = surface->Base.Height;
bytesPerPixel = vis.rgbBits / 8;
+ stride = width * bytesPerPixel;
origin = 0;
/* front color renderbuffer */