From 40c1c723fb77b0d9c1a1958498597403d2238ee7 Mon Sep 17 00:00:00 2001 From: Jon Smirl Date: Tue, 17 May 2005 03:38:06 +0000 Subject: [PATCH] Compute stride in the right order --- src/mesa/drivers/dri/fb/fb_egl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/fb/fb_egl.c b/src/mesa/drivers/dri/fb/fb_egl.c index 813afec0352..62e26021c5a 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 */ -- 2.30.2