summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2004-03-14 16:41:49 +0000
committerBrian Paul <[email protected]>2004-03-14 16:41:49 +0000
commit3340a9ea9ea31e6bd7f37d5c1f25ffcc97f20a6b (patch)
tree2a2cd201a403cd78b27775a632be642f7cb04307 /src/mesa
parent746e59f207182846993dad2b150f30c355d63088 (diff)
fix stride bug in RGB and BGR span rendering
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/osmesa/osmesa.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mesa/drivers/osmesa/osmesa.c b/src/mesa/drivers/osmesa/osmesa.c
index 8faf1433724..464ca7381a2 100644
--- a/src/mesa/drivers/osmesa/osmesa.c
+++ b/src/mesa/drivers/osmesa/osmesa.c
@@ -282,8 +282,8 @@ clear( GLcontext *ctx, GLbitfield mask, GLboolean all,
#define SPAN_VARS \
const OSMesaContext osmesa = OSMESA_CONTEXT(ctx);
#define INIT_PIXEL_PTR(P, X, Y) \
- GLchan *P = osmesa->rowaddr[Y] + 4 * (X)
-#define INC_PIXEL_PTR(P) P += 4
+ GLchan *P = osmesa->rowaddr[Y] + 3 * (X)
+#define INC_PIXEL_PTR(P) P += 3
#define STORE_RGB_PIXEL(P, X, Y, R, G, B) \
P[0] = R; P[1] = G; P[2] = B
#define STORE_RGBA_PIXEL(P, X, Y, R, G, B, A) \
@@ -297,8 +297,8 @@ clear( GLcontext *ctx, GLbitfield mask, GLboolean all,
#define SPAN_VARS \
const OSMesaContext osmesa = OSMESA_CONTEXT(ctx);
#define INIT_PIXEL_PTR(P, X, Y) \
- GLchan *P = osmesa->rowaddr[Y] + 4 * (X)
-#define INC_PIXEL_PTR(P) P += 4
+ GLchan *P = osmesa->rowaddr[Y] + 3 * (X)
+#define INC_PIXEL_PTR(P) P += 3
#define STORE_RGB_PIXEL(P, X, Y, R, G, B) \
P[0] = B; P[1] = G; P[2] = R
#define STORE_RGBA_PIXEL(P, X, Y, R, G, B, A) \